database splitting; multiple tables

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-05-26T07:52:04Z Indexed on 2010/05/26 11:01 UTC
Read the original article Hit count: 464

Filed under:
|
|
|

I am coding a classifieds ad web app.

What is the optimal way to structure the database for this? Because of the high repeatability, would it be faster (in terms of searching/indexing) to have a separate table in the database for each city?

Or would it be okay to just have one table for every city (it would have a lot of rows..).

The classifieds table has id, user_id, city_name, category,[description and detail fields].

© Stack Overflow or respective owner

Related posts about mysql

Related posts about database