Current location: Hot Scripts Forums » Other Discussions » Database » Small or huge?


Small or huge?

Reply
  #1 (permalink)  
Old 07-02-09, 12:21 AM
Wolf1994 Wolf1994 is offline
Wannabe Coder
 
Join Date: Sep 2005
Location: Russia
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Small or huge?

Hello!

I need an advice from the experienced MySQL developer.

There's a chess online game. And it has MySQL table with 10.000+ records. These records always in use. Each time any player makes a move - this table affected.

Question. Is it wise to make small size table for current games only? And after the game is over transfer it to huge table and remove from current? Is there a differece between having an "UPDATE / SELECT BY id" table with 100 records and the same table with 10.000?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-02-09, 12:28 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Don't sweat it- 10,000 rows is nothing. I have mySQL tables with over a million (1,000,000) rows in them and they work fine, update quickly, no problems. Seriously, 10K rows is a very small table. I doubt you'd notice any difference in doing updates on tables with 100 rows or 10,000 rows without using a profiler. Most of the cost in doing a query is in setting up the connection and then tearing it down, not in the update, insert, delete, or select activity.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-02-09, 01:51 AM
Wolf1994 Wolf1994 is offline
Wannabe Coder
 
Join Date: Sep 2005
Location: Russia
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for help. Question is closed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Small CMS script (PHP) Acert93 Script Requests 3 02-20-05 07:47 PM
do you need small or midsize project of 10 to 100USD get done phpdeveloper2004 Job Offers & Assistance 2 09-22-04 04:32 PM
small image script needed. graham barnes Script Requests 0 06-18-04 04:06 AM
Huge April Hosting Special ! - Plus Free Hosting Offer ! bjdea1 General Advertisements 0 04-17-04 09:52 AM
Hosting and small web desgin javadude2003 General Advertisements 0 08-06-03 08:42 PM


All times are GMT -5. The time now is 08:39 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.