performance with localmasterdetail option

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

performance with localmasterdetail option

Post by inageib » Sat 17 Nov 2012 01:34

Hi,
I have a detail table for invoices has 100,000 records and counting up so at the end of the year will be millions. I read about localmasterdetail option on the help file and tried to use it to reduce calls to the server but I want to ask does loading time when I open the table will be increased a lot when I have one million record or more ?

does using localmasterdetail master detail for such table is recommended ?

Thanks

AndreyZ

Re: performance with localmasterdetail option

Post by AndreyZ » Mon 19 Nov 2012 11:55

Hello,

Setting the LocalMasterDetail option to True is not recommended when detail table contains too many rows, because when it is set to False, only records that correspond to the current record in master dataset are fetched. When LocalMasterDetail is True, all records from the detail table are fetched to the client.

inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

Re: performance with localmasterdetail option

Post by inageib » Mon 19 Nov 2012 13:41

So for tables has alots of rows setting LocalMasterDetail to true will increase loading time but will be lighter on the network ?

AndreyZ

Re: performance with localmasterdetail option

Post by AndreyZ » Mon 19 Nov 2012 15:01

Yes.

inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

Re: performance with localmasterdetail option

Post by inageib » Mon 19 Nov 2012 15:40

Thanks

AndreyZ

Re: performance with localmasterdetail option

Post by AndreyZ » Mon 19 Nov 2012 15:48

If any other questions come up, please contact us.

Post Reply