Performance question regarding the use of DataRelation in DataSet

From: Håkon Eide (he_at_webstep.no)
Date: 03/25/05


Date: Fri, 25 Mar 2005 21:44:53 +0100

Hi,

I've got 2 DataGrids populated from 2 tables with a master/detail
relationship. Master table has about 13000 records, detail table about
100 000 records.
As I understand it, it would be possible to fill one single dataset with
data from both tables?
And then use a DataRelation to bind master data from grid 1 to detail
data in grid 2, so that when a user selects a row in grid 1, the
corresponding records are shown i grid 2?

If so, how would this reflect on performance? As far as I can tell, both
tables have to be fully loaded into the dataset for this to work? Or
does the .NET architecture do 'behind-the-scenes' querying and caching
and re-querying of the database?

DataRelation seems to be ideal for my case, but if that implies that the
users have to wait 2 minutes on application startup - then I'll have to
continue on my initial path, and do a new query on detail data everytime
a mousedown event fires on the master grid.

Regards,
-Haakon-



Relevant Pages

  • Re: Storing calculated values
    ... calculated value in a real field in the master table of a 1 to many form. ... In the detail area (a grid) Lets say I have 3 rows of items purchased. ... item has an Amount column with a value of 10.00 in it. ... TotalAmount field should calculate automatically. ...
    (microsoft.public.access.formscoding)
  • Re: Storing calculated values
    ... you have a main form with a subform on it. ... the value of the sum field and placing it in my field in the master. ... In the detail area (a grid) Lets say I have 3 rows of items purchased. ... TotalAmount field should calculate automatically. ...
    (microsoft.public.access.formscoding)
  • Re: Storing calculated values
    ... calculated value in a real field in the master table of a 1 to many form. ... In the detail area (a grid) Lets say I have 3 rows of items purchased. ... item has an Amount column with a value of 10.00 in it. ... TotalAmount field should calculate automatically. ...
    (microsoft.public.access.formscoding)
  • Grid on a form
    ... One of the pages keeps track of students general ... relates to the master table via SS number, ... Append the next field in the grid is a transaction ... The command button code I use below works, but I'm stuck on the rest. ...
    (microsoft.public.fox.vfp.forms)
  • Re: print gridview but not print template fields
    ... I'm using a master page and the gridview is in the content section. ... view has 2 or 3 columns that are links using a template ... user to print this grid. ...
    (microsoft.public.dotnet.framework.aspnet)