Hi Ron,

Thanks for you response, I need this because I have a function that clear a
table, read a bunch of local files and import it into the database. I just
want to avoid 2 people cleaning the table or maybe people querying the
table while it is being updated...


On Mon, Mar 4, 2013 at 10:10 PM, Ron McOuat <[email protected]> wrote:

> One possibility is to use a lock file. Look for portalocker.py in the
> gluon directory and the Session class which uses portalocker.py for use.
> Needing this functionality should be rare, multiple requests run on
> different threads so no collisions in the controller should occur. The
> database should keep multiple requests separated. If I could ask what
> requires this maybe there is a better way than a lock file or a way to
> avoid the problem. Using a lock file can lead to serious contention
> depending on how many users and the duration of the lock.
>
> Ron
>
> --
>
> ---
> 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/groups/opt_out.
>
>
>


-- 

Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

-- 

--- 
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/groups/opt_out.


Reply via email to