Previous Thread
Next Thread
Print Thread
Rate Thread
animehelp #210322 04/26/2001 5:47 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Is your current version of mysql locking tables by default? From the mysql manual:

Normally, you don't have to lock tables, as all single UPDATE statements are atomic; no other thread can interfere with any other currently executing SQL statement.

They suggest the only time to lock a table in these cases:

If you are going to run many operations on a bunch of tables, it's much faster to lock the tables you are going to use. The downside is, of course, that no other thread can update a READ-locked table and no other thread can read a WRITE-locked table.
If you are using a table handler in MySQL that doesn't support transactions, you must use LOCK TABLES if you want to ensure that no other thread comes between a SELECT and an UPDATE. The example shown below requires LOCK TABLES in order to execute safely:


Neither of these cases really apply to W3T.

I don't think there would be any way to change the scripts if tables are always locked from and insert,select,update etc. as your forums grow the amount of traffic will keep tables almost continuosly locked.


UBB.threads Developer
Sponsored Links
Entire Thread
Subject Posted By Posted
Performance stroker 04/26/2001 8:50 PM
Re: Performance Rick 04/27/2001 12:47 AM
Re: Performance jriihi 04/27/2001 7:12 AM
Re: Performance Mors 04/27/2001 7:26 AM
Re: Performance Rick 04/27/2001 3:05 PM
Re: Performance stroker 04/27/2001 9:36 PM
Re: Performance aantix 04/28/2001 12:32 AM
Re: Performance Rick 04/28/2001 12:47 AM
Re: Performance Eileen 04/28/2001 2:59 AM
Re: Another Note on Performance aantix 04/28/2001 7:22 AM
Re: Another Note on Performance stroker 04/28/2001 8:34 AM
Re: Performance BillD 04/29/2001 3:11 AM
Re: Performance aantix 04/29/2001 5:13 AM
Re: Performance jriihi 04/29/2001 7:05 AM
Re: Performance BillD 04/29/2001 7:05 PM
Re: Performance stroker 04/29/2001 8:19 PM
Re: Performance BillD 04/29/2001 8:34 PM
Re: Performance stroker 04/29/2001 8:51 PM
95% of w3thread database writes are non-essential mario2 06/13/2001 9:18 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)