Re: Master-Detail Strategy

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The appropriate approach really depends on the application architecture, how
many rows we're talking about, and how widely (or if) you expect to scale
the application.
In any application, this does not make much sense as you're transporting a
great deal of data to the client--data they might never need. I suggest
creating a filtered query that returns the selected master row. Once
selected, it's easy to execute a focused query to return activity related to
that row. With this approach, a detail fetch can be done in under a second
(if the query and indexes are done correctly).

My book(s) discuss this approach in detail...

hth

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Bruce" <bvanderw-news5021@xxxxxxxxxxxxxx > wrote in message
news:dc4v81dngbtsemsb7hfjiivnbf5n0qs0ie@xxxxxxxxxx
>I have a master table that I would like to display on a form with a
> navigator, and I would like to display the detail records in a grid
> for each master record.
>
> Right now, I am getting all the records for both tables using
> DataAdapter.Fill and a "select * from <table>" select command. I am
> then setting up a DataRelation in code between the two tables.
>
> The problem I am having is that it is taking up to 30 seconds to fill
> the detail table because of it's size. Is there a way to dynamically
> retrieve and display (and edit) the detail records as each master
> record is displayed?
>
> I'm using the XtraGrid from Developer's Express for the detail records
> if it makes a difference.
>
> --Bruce
>
>


.



Relevant Pages

  • Re: Print Form/Report with Master and one Detail record per page?
    ... For the purpose the forms were designed for, the subform ... worked correctly showing all detail records for any master ... I did not have a query ...
    (microsoft.public.access.formscoding)
  • Re: SQL Statement for limiting the number of detail retrieved in Access 2000?
    ... this cannot be handled in a query. ... INNER JOIN ... How do I limit the number of detail records selected in a Master-Detail set using SQL? ... I want to select all master records for a date, but only the first 3 records for the details. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to eliminate duplicate value from displaying in query result
    ... When you use this query ... as the recordsource for a form or report, the name will only appear once in ... The relationship between the master ... table and subsequent rows will have name shown as blank while display ...
    (microsoft.public.access.queries)
  • Re: GetChildRows
    ... I should query a portion of the master table ... then query the detail records that link to the subset of the master ... > more queries to the DB but should improve the overall performance. ...
    (microsoft.public.dotnet.languages.csharp)
  • Master-Detail Strategy
    ... navigator, and I would like to display the detail records in a grid ... for each master record. ...
    (microsoft.public.dotnet.framework.adonet)