Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)



On 2006-06-21 15:13:43 -0500, "topmind" <topmind@xxxxxxxxxxxxxxxx> said:


Robert Martin wrote:
On 2006-06-13 00:14:58 -0400, frebe73@xxxxxxxxx said:

How do you find "use relationship tables in programming language"
inconvenient?

If I want to traverse a deeply interconnected graph of data, in which
each node contains a reference to other nodes, then relationship tables
queried with SQL much less convenient than node data structures that
point to other nodes.


Can you provide a demonstration on why it is allegedly less convenient?
Note that I have nothing against creating app-specific functions for
common activities, such as GetSurroundingNodes(depthLevel). SQL can
provide some easy solutions to problems that may be time-consuming to
roll by hand such as removing duplicates, cross-referencing, summing,
etc.

Consider circuit board layout software. All the traces, conectors, feed-thrus, solder masks, silk screens, etc. Just the traces are a set of line segments that form a graph of edges and nodes. Now write an algorhithm that notes where the bypass capacitors are, and also where the noisy components are, and makes sure that the noise is properly bypassed.

To do this you are going to have to walk the graph of traces over and over again. This is better done in ram, than through repeated tiny SQL queries, each of which gives you the next few line segments.
--
Robert C. Martin (Uncle Bob)  | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |



.



Relevant Pages

  • Re: Official Status of SQLServer 2005 ADP
    ... I have said that the support for SQL passthrough ... queries under MDB was bad and worst than the one offered by ADP while you ... > attempt to "pass through" every Access query against a linked ODBC ...
    (microsoft.public.access.adp.sqlserver)
  • Re: 2 crosstabs
    ... I have no problem using one query as the source for a line graph. ... problems comes when I want to combine both queries into one line graph. ... sense of it to generate my own SQL: ... Orders INNER JOIN (Products INNER JOIN [Order ...
    (microsoft.public.access.queries)
  • Re: Massive Large Query Issues
    ... Project Budgets: Entered at the Capital Request level, ... installed (One install is typically $100,000 plus the cost of the equpment, ... install SQL Server. ... Often, a collection of queries ...
    (microsoft.public.access.queries)
  • Re: Massive Large Query Issues
    ... Project Budgets: Entered at the Capital Request level, ... install SQL Server. ... of queries? ... make of the query you provided is to roll it up into a subsequent ...
    (microsoft.public.access.queries)
  • Re: Dynamic query problem
    ... On Oct 17, 9:41 am, Andy Hull ... If we were to provide a fully featured dynamic query generator we would have ... Provided with already built queries which they can edit ... SQL and see where it is the same as for the other queries and where it ...
    (microsoft.public.access.queries)