data modeling - MLS Database Schema -


I am trying to prepare an app that will take a real estate MLS (multiple listing service) data from a CSV and Insert I have CSV parsing in this database, but I'm having trouble making the database efficient. The problem is that the MLS data provider is known to change the nature of property information without changing the information quickly. That's why there is a table, which with 1-to-two-match data will probably cause problems in loading data in the future. It seems that most developers put each element in one line. IE is my current setup:

  id = int property_id = longint element_key = char element_value = text  

As you can imagine from 1000s of these qualities Very slow about 80+ elements with each.

How can I make it more efficient but make the database flexible?

And yes, I know about memcache and plan to use it.

You are at the mercy of the data providers, unless there is no way to control them. This has been the effect of database work for almost fifty years, and it is unlikely to change anytime soon. Using CSV is nothing to do with the underlying problem.

I suspect that this is not just a format of data, which changes, but also has the vocabulary of data, even if you did not say it.

Your best bet is to have one or more lofty tables that can record a lot of CSV data in the format you receive. Whenever the providers change things on you then be prepared to change these tables then write some procedures that change this data into a suitable form for your base tables, and copy the converted tables into the base tables. These procedures will require periodic maintenance, but will remain more stable in your base tables, unless you need to store more information in accordance with the changes provided by the suppliers.

If the database should be fully dynamic to keep data with your changing input, then you are stuck with some models like EAV, which is completely unaware of the logical structure of the data. This ignorance is very dynamic for EAV, but it will create havoc for you when you look for EAV data in meaningful information.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -