Jump to content

Big database design


danger2oo6

Recommended Posts

Hi all,

I need a little help in a database design.

I want to design a database which will have around 500.000 records and I would like to know if you know some rules I have to follow.
The database will be used for a dating site where will be lots of query`s on the database and a good database design will improve the response time.

Thank you in advance,
Bogdan.
Link to comment
Share on other sites

The best things to start with is to use id's for everything and don't duplicate data. For example when you put in your messaging service on your site, don't use username_to or username_from, use id_to and id_from. So instead of:

To: danger2oo6
From: cmgmyr

it would be:

To: 23
From: 64

...or whatever numbers they are. Then you query the member name and whatever else you need. By making your database this way it will cut down a lot of space and your queries will be faster.

-Chris
Link to comment
Share on other sites

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.