I have recently started reading Martin Fowler's "Analysis Patterns" in an attempt to improve my data modelling skills and I find the book really interesting and enlightening as far as object-oriented approaches are concerned. However, although I think I understand how most of the patterns would translate into a relational database schema, I fail to see how to implement them in a realistic way.
For example, implementing the "Measurement" pattern (chapter 3.4) in a (non object-)relational database would require:
- 1 table to store Persons.
- 1 table to store Measurements for a Person (N-1 relationship).
- 1 table to store the Quantity of a Measurement (1-1 relationship).
- 1 table to store the Phenomenon Types that may characterise a Measurement (1-N relationship).
In an RDBMS all this amounts to several sort operations to realise joins and to a large number of records that need to be joined, especially if we're storing lots of Persons and lots of Measurements for each Person. I suspect it would not perform well.
The question, I suppose, is whether I am correct in my "suspicion" and if someone could point me to the right direction in terms of books or other sources that discuss the implementation of such analysis patterns to relational databases.
Thank you very much in advance, Nico