MySQL Forums
Forum List  »  Performance

Re: millions of records
Posted by: Nathan Huebner
Date: November 03, 2005 05:42AM

Kevin:

I am going through something similar as you are. But in my case, I need my database design ready to handle 50 million records ( im shooting for the moon here ).

lets pretend im amazon, and i have 50 million rows of customer data.

obviously, i cant store this in one table can i.

So when i think about it, I would have to setup some sort of system for storing this..

After a lot of thought I figured, how about creating customer id #'s?

for example: bob hunt gets a customer id # 10098994488
for example: jerry fox gets a customer id # 10198994488

I could take the first three digits (100 and 101), and store them, but when you think about it, .... how are you going to look up this customer through 50 million records? When a user comes to your site, you dont ask for a freaking customer id #, your site asks for their email and password. So you have an email address, and password, but no customer id #? so how are you supposed to know which table they are in? And even if you search all .... 500 or more tables, ... with 400,000 lines or more in each table, it would take a lot of time even with indexes and primary keys.

So if we did something like this, where would the entire 50 million rows of data holding the email address and customer id # go so you could search it and get the customer id #, and then go to the table they are stored in.... that's the really screwed question here.

if you figure it out, let me know.

Options: ReplyQuote


Subject
Views
Written By
Posted
5985
September 03, 2005 12:04PM
2646
September 05, 2005 12:24PM
2463
September 26, 2005 04:30PM
Re: millions of records
2373
November 03, 2005 05:42AM
3520
November 03, 2005 06:56AM
2087
November 03, 2005 04:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.