I have many objects of this structure:
~ PlaceID
= Upvotes
= Downvotes
= Names
- Title
+ Upvotes
+ Downvotes
- Other names[]
+ Upvotes
+ Downvotes
= Location
- Lat
- Long
- Address
= Images
- Top
+ id/url
+ Upvotes
+ Downvotes
- Others[]
+ Upvotes
+ Downvotes
= Comments[]
- id
- Text
- Upvotes
- Downvotes
- ReplyTo
To keep organized, I've laid out a schema that involves a lot of links. This is an example table:
7741 (PlaceID)
______________________________________________________________________________
names | location | upvotes | downvotes | images | Comments
_______________________________________________________________________________
7741_names | 7741_location | 20 | 3 | 7741_images | 7741_comments
then in, say, 7741_images (sorted by score so "Top" item is easy to retrieve):
imgID | score | upvotes | downvotes | url |
________________________________________________________
7741_21 | 98 | 44 | 1 | /img/7741_21.png |
7741_14 | 94 | 40 | 2 | /img/7741_14.png |
Will this drill-down style with a lot of tables per object make querying really slow or very specific queries overly wordy? (for 100k places?)
I have never been responsible for schema design so excuse me if I am missing the obvious.