Jump to content

Archived

This topic is now archived and is closed to further replies.

joecooper

MySQL row limit

Recommended Posts

I need to have at leas 10,000 rows in a mysql database table... whats the drawbacks?


It will need to load everyone of those rows on a single page also using a loop script...

Share this post


Link to post
Share on other sites
[!--quoteo(post=349574:date=Feb 26 2006, 10:43 AM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Feb 26 2006, 10:43 AM) [snapback]349574[/snapback][/div][div class=\'quotemain\'][!--quotec--]
It will need to load everyone of those rows on a single page also using a loop script...
[/quote]

Longer load times on your webpage due to all the data being downloaded. If there is a lot of traffic to your site, doing it over and over and over will slow your server down.

MySQL can handle a lot more than 10k rows, so that isn't a problem.

Share this post


Link to post
Share on other sites
[!--quoteo(post=349574:date=Feb 26 2006, 10:43 AM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Feb 26 2006, 10:43 AM) [snapback]349574[/snapback][/div][div class=\'quotemain\'][!--quotec--]It will need to load everyone of those rows on a single page also using a loop script...[/quote]
Why? If I were a visitor to your site I probably wouldn't be interested in reading a 10,000 row presentation of data, even if I was nice enough to wait for the enormous generated html file to download and be rendered by my browser. As noted, a database with 10k rows is nothing special. Maybe you want to share your design logic with us so we'll understand why you want to load every row and display them?

Share this post


Link to post
Share on other sites
its an idea i had, million pixels seperated into 10x10, they are defaulted as '0', but when they are clicked on, they turn '1' so that the script can turn that square into a black square... 50 hidden squares that win £10 to the user. :), 5 clicks per day are allowed. each winning square, (after its been pressed) turns to '2' to make it go blue to show its a winner so they could win upto £50 a day... but very unlikely

im just hopeing load time would be less then 5 seconds

Share this post


Link to post
Share on other sites
Yes, as long as you make the html efficient, it can be done. You can select all 10000 rows in a single query and loop through them on the PHP side.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.