Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL for Modeling Generalization Hierarchies
ctcgag_at_hotmail.com wrote:
My 2 cents thrown in at the bottom:
> robertbrown1971_at_yahoo.com (Robert Brown) wrote:
>
>>>>This solution does not seem to scale since for each value of >>>>"discriminator" I need to perform a join with a different table. What >>>>if I need to retrieve 1,000 employees at once? >>> >>>Why would you ever need the attributes of more than one subtype? If >>>your query is about doctors, why would you need to join the table >>>about janitors into the query? >> >>Because I need to display users and their heterogenious attributes in >>the UI as one list (e.g. in response to a search).
>>>If your query is about employees, why would you need to know any of the >>>subtype attributes? >> >>Same reason, our customer's HR department does not see the employees >>as separate entities. To them an employee is an employee and they want >>to see all the associated data while browsing employees. I guess you >>could show the generic attributes on the first pass and then require >>the end user to click to drill down and see the subtype attributes - >>but that's not what they want.
When I was dealing with large database systems, we tried to make a distinction between "transaction" and "report" and tried to get the response time requirements ignored for "reports".
Anything which returns 1,000 rows is no longer a "transaction" in my book. As Xho said, "... they can damn well wait ..."
If this were a print job, it would print on roughly 20 pages, give or take. It would take whoever about 2 minutes to even give it a cursory scan. About the same amount of time to scroll down through a screenful of 1000 entries too, probably more.
Questions I used to ask when confronted with this:
- What is the business need for this information? - Can you usually wait for it overnight? - In a pinch (when overnight isn't good enough), would10 minutes be OK?
What actually used to worry me about having such "reports" as on-line "transactions" was how they would impact the response times for the other users who were doing stuff which actually did require rapid response (e.g. pull up an individual's medical history in an emergency).
(I think that was actully 3 cents :)
NPL
-- "It is impossible to make anything foolproof because fools are so ingenious" - A. BlochReceived on Wed Jun 02 2004 - 14:11:54 CDT