Bug Report T853147
Visible to All Users

Master-Detail - Large memory consumption when exporting expanded master rows

created 5 years ago

If we want to export a Master/Detail grid we get an error: "Out of memory". This happens even with small datasets. Attached is a sample Application.

Show previous comments (2)
DevExpress Support Team 5 years ago

    To my regret, we were not able to overcome this behavior yet. In fact, it can be reproduced without export routines. By calling "cxGrid1DBTableView1.ViewData.Expand(True)". We have to create 5000 DataController components with all their columns and data structure and this takes much time.

    O O
    Oliver Brumund - SHB 5 years ago

      I see… that's a pity. With the data volume of our customers the export function will not be usable with a master-detail-grid.

      One suggestion: if i call "cxGrid1DBTableView1.ViewData.Expand(False)" the full expansion is very fast. We almost only have one Detail-View.
      If i understand correctly the "ARecurse" parameter is responible for expanding the detail views. But since there are no detail views to expand, shouldn't it be possible to only create the Datacontrollers when you need to?
      Meaning in our case the expansion before the export should work as fast as the expanion with "ARecurse" = false.

      DevExpress Support Team 5 years ago

        The exporting mechanism uses a different expanding approach. However, in general this approach might work. I've created a separate ticket on your behalf (T856641: Exporting detail views takes long time) to investigate if it is possible to make the export routine faster.
        I am not sure that we will be able to offer a solution in the near future, but we will try.

        Answers approved by DevExpress Support

        created 5 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.