Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.