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
https://forums.phpfreaks.com/topic/66219-split-big-database-and-mange-it/
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.

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.