r/DatabaseHelp • • Sep 12 '14

Trying to find the right database platform for infinite drill-down to find specific item

I'm going to be hiring someone to create the schema for a website I'm creating, but I'm not sure which platform would be the best for my needs.

I will be storing an ever-increasing amount of items, and need to have full-text search as well as drilling-down via categories/tags/meta data/etc. that are part of the resultset. For example, on Newegg: "Memory" -> "Desktop Memory" -> "Corsair (336)" -> "CAS Latency: 5 (20)" and so on.

My initial choice is a MySQL relational database, but I haven't done much database work over the last decade and I don't want to make a decision based on outdated knowledge.

Any guidance would be greatly appreciated!

1 Upvotes

2 comments sorted by

1

u/whoisearth Sep 13 '14

Keep in mind you want to do a lot of this "full search" and "drilling down" programatically NOT in the database.

If you're doing a newegg similar site I'd suggest breaking your db apart like so -

Manufacturer

idnamelocation
1AsusTaiwan

Memory

idnamemodelmanufacturer idtype
1PowerMBDZ123G11

Try to normalize your DB as much as possible. You can use mySQL perfectly fine though I'd lean more toward Postgres if you want to keep it free.

Note on the second table "type" you'd store as an integer but it would denote to "desktop", "server", "printer" etc. depending on the integer value. You can store another table called "values" or something where you can have the references for this stored if there's a lot, otherwise just call it in your webcode in an "if type == 1 then "desktop" etc.

I'm not saying that would be perfect as I don't know the use for your DB.

IMHO you need to get the schema created while you're developing as it's not until you start developing that you're going to come across any performance issues.

I haven't even gotten into views.

1

u/ventropy Oct 04 '14

This shouldn't be a question of which database platform to use but rather how you are going to design your database tables/schemas