Ticket Q330128
Visible to All Users

XPO Data Source - Can I create a dynamic data source?

created 14 years ago

Hi,
I love your product.
I have a question regarding processing large data sets and your recommendation to use XPO data source for server side paging.
This looks like an attractive option for our company, although it may not be possible.
We allow end users to define there own table structures (consisting of fields) and store the structure as an xml document in a row in a SQL table (Called TableSchema).
We then provide a web based UI that allows the users to create read update and delete records based off of that structure. Each record created by a user is also stored as an xml document in a row in a SQL table (Called TableRecords)
We use DevExpress Grid to render these records. I dynamically create the grid based on the structure of the table defined by the user (in the TableSchema) table.
We have many many rows > 1 million. I am looking for ways to increase performance.
Here is my question…
It appears that you must create ORM objects which map the table to a class structure in order to use as an XPO data source.
Is there a way that I can dynamically build an ORM object at runtime so I can take advantage of Server side paging with XPO?
Thanks in advance
Mike McGrath
CTO
GroveSite

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

    Hi Mike,
    It's great that SQL Server allows you to sort and filter rows in this manner. Now, you should implement an object layer with a custom logic of storing and retrieving data. However, this is not a trivial task and we do not have examples of this functionality. We recommend that you review the SimpleObjectLayer class source code.
    Thanks,
    Michael.

      Thanks Michael for your quick response. Have a good day
      You can mark this question as answered and close
      Mike

      DevExpress Support Team 14 years ago

        Hi Mike,
        Please let us know if you need an additional assistance. We will be happy to help you.
        Thanks,
        Michael.

        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.