Jump to content

[SOLVED] Number or rows


Stephen68

Recommended Posts

Ok I'm making a little game and I'm going to use a grid map for the page to display. I am going to put each block

in the grid into the database. What I'm wondering is this...

 

How many rows are to many in a DB table? this table will have 1600 rows (800x800 grid). Before I go and start

putting in the information I thought I would see if this is a normal amount for a table or not. Thanks for your time...

 

 

Stephen

Link to comment
https://forums.phpfreaks.com/topic/151227-solved-number-or-rows/
Share on other sites

Well, a lot of the map area will have a generic graphic to show it and it will be the same one for each spot. So

I could put all the location into one row in a field delimited by a comma maybe (10|100,10|101,10|102,..ect).

Then I could only have new rows that have a different graphic or player owned? Would this be a good design?

Better approach would be to store in database only those locations, that are somehow different from 'generic' location.

Then if you need to display information about given field, you check if it exists in database. If not, then display generic information.

Archived

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

×
×
  • Create New...

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.