Basic usage statistics

98 views
Skip to first unread message

Leonel Câmara

unread,
Jun 11, 2015, 12:55:18 PM6/11/15
to web...@googlegroups.com
Minor implementation details aside, has anyone came up with a better way to do this?


Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel.

Richard Vézina

unread,
Jun 11, 2015, 1:03:14 PM6/11/15
to web2py-users
You may consider, log in memory and write once you have an hundred records with scheduler...

This could be a great improve and a better log system on that matter... So far, with more then an hundred user, it never been an issue...

Richard

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Vézina

unread,
Jun 11, 2015, 1:09:43 PM6/11/15
to web2py-users
I am not sure though that this is possible, I mean, is there a way to db.table.insert() without db.commit() even if other change are commited... Or say differently, is possible to specifically commit db operation?? You may also just remove the db.commit() and insert will be commited the next time db.commit() will be call. I never try this...

Richard

Richard Vézina

unread,
Jun 11, 2015, 1:23:02 PM6/11/15
to web2py-users
Also Leonel, if you have an app that really requires more then that (I mean not an in house intranet app) you may consider Piwik : http://piwik.org/

Richard

Derek

unread,
Jun 11, 2015, 2:36:22 PM6/11/15
to web...@googlegroups.com
Google has, it's called Google Analytics. There are alternatives out there. You could also use your web server log files.

Richard Vézina

unread,
Jun 11, 2015, 3:04:12 PM6/11/15
to web2py-users
For LAN Piwik!!

Richard

--

Niphlod

unread,
Jun 11, 2015, 3:10:42 PM6/11/15
to web...@googlegroups.com
you could use a redis queue to push events into, and then a scheduler tasks that consolidates the data in a table once in a while. 

Richard Vézina

unread,
Jun 11, 2015, 3:13:17 PM6/11/15
to web2py-users
Not sure how you can know which user access what without using my usage statistics stuff... With Piwik or Google Analytic you will rely on IP address? I use Google Analytic a little long time ago...

Richard

--

Leonel Câmara

unread,
Jun 11, 2015, 4:20:22 PM6/11/15
to web...@googlegroups.com
Exactly Richard, I would like to know which users are accessing what, because the users like to see it. The redis solution may be the best one if I want to give the database a break.

Richard Vézina

unread,
Jun 11, 2015, 4:42:46 PM6/11/15
to web2py-users
Yes, Simone proposition is really good...

Richard

On Thu, Jun 11, 2015 at 4:20 PM, Leonel Câmara <leonel...@gmail.com> wrote:
Exactly Richard, I would like to know which users are accessing what, because the users like to see it. The redis solution may be the best one if I want to give the database a break.

--
Reply all
Reply to author
Forward
0 new messages