If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > mySQL access-time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-04, 01:30
thorti thorti is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
mySQL access-time

Hey!

I want to set up a mySQL Table with 5 million entries. How long will it take in average to search one of those entries.
Reply With Quote
  #2 (permalink)  
Old 04-07-04, 11:49
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
The ever popular "it depends" is the best I can do. How are you doing your query, is it indexed (and can the query use them), what kind of hardware are you running, etc? Way more questions than answers, but I'd guess you are looking at about 3 seconds if you do it right.

-PatP
Reply With Quote
  #3 (permalink)  
Old 04-08-04, 16:11
localt localt is offline
Registered User
 
Join Date: Mar 2004
Posts: 16
So could you please check this out:

http://www.dbforums.com/t991595.html

I have queries running for more then 20 sec on a 500,000 records table...

Thanks
Reply With Quote
  #4 (permalink)  
Old 04-09-04, 10:24
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
If your queries are taking several seconds, then almost certainly you are doing full-table scans. Or you may be using subqueries that are being executed hundreds or thousands of times.

The EXPLAIN verb is useful for showing you the "execution plan" that has been derived from your query. The execution-plan is the actual 'program' that is executed by the DBMS to produce the results you seek. If the operation is going to be expensive, you'll see it right there.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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