Forum Moderators: phranque

Message Too Old, No Replies

Need faster Database System?

or just needs optimising?

         

chrisandsarah

12:25 pm on May 26, 2004 (gmt 0)

10+ Year Member



I am trying to find out whether my site needs a faster database or just needs optimising. It currently uses a mySQL database.

I have had a new system implemented where a page lists widgets along with their details, and on the same page it has a column that lists links to 'other nearby widgets' and 'other nearby towns' that sell widgets, along with distance calculations. All this information is retrieved from database, so i guess thats a lot to handle? Most pages have to access several tables. The town table currently holds details for around 58339 towns AND widgets. Would this table be better split up?
Someone mentioned using flatfiles to speed things up. Are there any database design/optimisation experts out there? Please sticky me for url's if you can help or advise.

Many thanks,
chrisandsar

peterdaly

12:28 pm on May 26, 2004 (gmt 0)

10+ Year Member



Have you created any indexes?

chrisandsarah

12:38 pm on May 26, 2004 (gmt 0)

10+ Year Member



Hello Peter

I wouldnt know. I payed someone to do the database work a while back. I dont 'think' there are any, just tables containing all the data. e.g TownTable contains fields: townID, description, location, grid reference etc etc. There is however a table that gives object ID's (one of the objects being a town). maybe this is what you mean by an index?

Sorry, this is why i need an expert to contact me and maybe agree to take a look

JasonHamilton

1:00 pm on May 26, 2004 (gmt 0)

10+ Year Member



Flat file would not be what you wanted. MySQL is very quick.

Personally, I wouldn't have mixed widgets with town data, but that is just for orginazational purposes.

To answer your question, MySQL can handle 60k rows in a table just fine. It all depends on how your queries are structured and how your indexes are setup.

I run several websites with databases ranging from 600k to 4 million rows per table and all but the most complex queries are returned within 0-2 seconds.

chrisandsarah

3:24 pm on May 26, 2004 (gmt 0)

10+ Year Member



Does it make any difference to access time if you have seperate tables for seperate items?
E.g
say the town/attraction table stored data for 40,000 towns and also for 20,000 attractions, would it be best to make a seperate table for the 20,000 attractions? Any difference in speed?

many thanks