Jump to content


Photo

MySQL row limit


  • Please log in to reply
4 replies to this topic

#1 joecooper

joecooper
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 26 February 2006 - 03:43 PM

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...
Signature:
[/a]
[a href="http://www.planet-so...=1999&lngWId=8" target="_blank"]EzLogin 1.0[/a]
[a href="http://www.essexracers.com" target="_blank"]Essexracers.com[/a]
Msn Messenger: joe@joeyjoe.co.uk

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 26 February 2006 - 04:09 PM

[!--quoteo(post=349574:date=Feb 26 2006, 10:43 AM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Feb 26 2006, 10:43 AM) View Post[/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.

#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 26 February 2006 - 04:30 PM

[!--quoteo(post=349574:date=Feb 26 2006, 10:43 AM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Feb 26 2006, 10:43 AM) View Post[/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?

Legend has it that reading the manual never killed anyone.
My site

#4 joecooper

joecooper
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 28 February 2006 - 02:05 PM

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
Signature:
[/a]
[a href="http://www.planet-so...=1999&lngWId=8" target="_blank"]EzLogin 1.0[/a]
[a href="http://www.essexracers.com" target="_blank"]Essexracers.com[/a]
Msn Messenger: joe@joeyjoe.co.uk

#5 wickning1

wickning1
  • Members
  • PipPipPip
  • Advanced Member
  • 405 posts

Posted 28 February 2006 - 05:02 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users