4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Locking and concurrency
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Hertzsprung
WebHelper
WebHelper


Joined: 30 Jul 2002
Posts: 56
Location: UK

PostPosted: Thu Jan 23, 2003 6:38 pm (21 years, 11 months ago) Reply with QuoteBack to Top

I have a small amount of DB experience, and have just started looking at concurrency issues. Could anyone offer and overview of locking in MySQL, and how to use it in a web environment?

Thanks in advance,
Hertzsprung
OfflineView User's ProfileFind all posts by HertzsprungSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Jan 23, 2003 6:46 pm (21 years, 11 months ago) Reply with QuoteBack to Top

I don't know much about these things either, but I do know that all the PHP & MySQL scripts I have looked at do not use locking (even big ones like phpBB). I don't know if that's because it's not necessary in MySQL, or whether it's because their authors don't think it's needed.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Iyonix
WebHelper
WebHelper


Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England

PostPosted: Sat Jan 25, 2003 2:33 pm (21 years, 11 months ago) Reply with QuoteBack to Top

Various wrote:
locking


Is this like the flock() function for file handleing in PHP or am I missing the point?

________________________________
Iyonix
OfflineView User's ProfileFind all posts by IyonixSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sat Jan 25, 2003 2:34 pm (21 years, 11 months ago) Reply with QuoteBack to Top

Yes, it's something to that effect: you can "lock" tables to prevent reading and/or writing.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Hertzsprung
WebHelper
WebHelper


Joined: 30 Jul 2002
Posts: 56
Location: UK

PostPosted: Mon Jan 27, 2003 4:17 pm (21 years, 11 months ago) Reply with QuoteBack to Top

So no answers then? Sad
OfflineView User's ProfileFind all posts by HertzsprungSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon Jan 27, 2003 5:01 pm (21 years, 11 months ago) Reply with QuoteBack to Top

This might be of use: http://www.mysql.com/doc/en/Internal_locking.html

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.151498 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme