What do you have running that results in something happening every 15 seconds? Your module won't run just by virtue of existing. You must be running some code somewhere in order for the database to be getting updated. If the only code that updates your database is your application code, then the data will be updated *only* when there is an HTTP request, and otherwise *never*. There's no mechanism that would result in 15 second updates.
Also, what do you mean when you say the data are updated every 15 seconds? How exactly are you observing these updates (i.e., where are you looking)? It's really not clear what your real code looks like or how it is running, so it is difficult to provide any insight. Anthony On Tuesday, December 8, 2015 at 3:03:34 PM UTC-5, Aydin S wrote: > > Thanks, that makes sense. Ok test2 in the above code comes from a > potentiometer that is sensed inside the module. Right now I'm not really > doing anything specific and I'm using the code I put in here; I'm just > trying to learn. > So what you said matches with my tests that with http request it gets > updated. I have rephrase that to clarify. If I do http request the database > gets updated immediately. If I don't do http request data gets updated in > about 15 second. > Based on what you said, and the fact that I want it to be faster I may > have to use scheduler. I think scheduler can do it in 1 second minimum. > So the web2py crib has been removed? -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

