Jump to content

Split big database and mange it


burhankhan

Recommended Posts

Hi:

 

I have a database of members with 3 Million records. Its size is 400 MB.

 

When i query to get records from that database, it takes too much time (2, 3 seconds) and server become busy when there are some queries from that database.

 

I searched its solution, and found that i should split that database into many tables.

 

How can i do this? There are primary keys (ID) into that table, if i will split it, how can i manage it using php?

 

Or is there any other solution?

 

Thanks

Burhan Khan

Link to comment
Share on other sites

No such thing as a general solution . How much info is being queried? How much of the table, etc.? Which fields, indexable, etc.?

 

Some time 30,000 records need to be fetch, some time only one record. And some time need to count number of records in it using Count(*).

 

It is only one table that is making problem.

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.