質問

I'm developing an app that will store MLS (Multiple Listing Service) Property Listings from several different MLS's. The majority of my customers will only use one MLS, however, some will use mutliple MLS's. My question is: What is the best method to setup the table(s)? Let's say I have 50 different MLS's. Each MLS will have roughly 80k records and 100 fields. Should I put all listings into a single table and reference by an MLSID? or should I create a new table for each MLS? Each MLS will always have the same field names and datatypes.

I would think that putting each MLS into it's own table would be best for performance, but not for scalability. If I were to put all records into a single table, how much do you think that would effect the performance? I'm also thinking a single table may be better because when the customer uses multiple MLS's, I can pull from a single table rather than multiple tables. Thoughts or ideas?

役に立ちましたか?

解決

I would put all MLS's in the same table. Normalization would dictate that if there is repeatable data, some MLS data would be stored separately as well. I don't know enough about the business to speak on that.

And if clients can have more than one MLS I would create an intersection table to explicitly show the one to many relationship.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top