Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To answer your first question: Why isn't Attribute and AttributeValue merged? Can an AttributeValue have more Attributes? I guess it is the Item that can have multiple Attributes.</p> <p>Item {ID, Name}</p> <p>Attribute {ID, ItemID, Name, Type, Value}</p> <hr> <p>I was trying to write you an answer to you question, but as I dug down into your problem, I began to be unsure of what you are doing. Are you trying to create a dynamic table in your database?*</p> <p>Here is the rest of my answer:</p> <hr> <p>You need to figure out where your performance bottleneck is. Is it retrieving data or is it showing data. </p> <p>15 seconds sound like a lot for data being shown. It should not take more than 1 to 2 seconds, IMHO.</p> <p><strong>Here is a couple of tips:</strong></p> <p>DataGrid is a heavy weight control that can do a lot of things. I would suggest you to use a ListView with a GridView and customize you out of what ever requirement you must have.</p> <p>ListView is virtualized by default. In 4.0 if you apply grouping virtualizatiion will be disabled. In 4.5 virtualization with grouping can be applied.</p> <p>Optimize the database query by using SQL Profiler. See which queries is executed. If a lot of queries are execute this could lead to bad performance. Doing eager loading in EF (with .Include) could help speed things up. Remember the proper indexes. </p> <p>To comment on Ladislav Mmka's comment it is not the whole truth. WPF controls does not support data virtualization (data is only fetched when shown). They only support normal virtualization where all data is present, but only the viewable part of the items are rendered. Big difference between the two. There are solutions out there that tries to do data virtualization in WPF. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload