1

i've been searching for a while for a way to handle the lock-write mechanism in( whenever user is updating , the record should be locked for the others ) . and i've been told that the web-frame work is responsible for this.
check this out :
https://serverfault.com/questions/184666/how-to-configure-apache-server
my question is : how do i do that with django , in other words . what title should i be searching under
this is an Emergence task . please help
thanks in advance

Community
  • 1
  • 1
Moayyad Yaghi
  • 3,622
  • 13
  • 51
  • 67

1 Answers1

1

Locks on the Database are provided by your DBMS like MySql or MSSQL Server. Not your framework or webserver.

http://en.wikipedia.org/wiki/Lock_(database)

Henrik P. Hessel
  • 36,243
  • 17
  • 80
  • 100
  • Not necessarily; if it's a long-term lock, eg. for a shared text editor that says "this document can't be edited because someone else is editing it already", you definitely do not want a database lock or transaction. (The question is too vague to have any idea what he's actually asking, of course.) – Glenn Maynard Sep 25 '10 at 20:46
  • True, but on his posting over at serverfault he talks about database entries. – Henrik P. Hessel Sep 25 '10 at 20:51
  • Documents like that are still typically stored in a database. Anyhow, throwing darts is all that can be done with a question like this... – Glenn Maynard Sep 25 '10 at 21:00
  • glad that Henrik answered my question ( your the man with the most interesting topics in stackoverflow to me ) ^_^ – Moayyad Yaghi Sep 25 '10 at 23:35