We have a large trade item table with 2.125.590 records. This table is visible in the application and uses a top 1000 limit (configured via the SF).
A user is currently allowed to set a sorting order on 8 different columns.
When a user applies a sort order on 1 column it takes up to 16 seconds for the application to show the sorted set. And Excel style filtering can't handle it all. Trying to place a filter via the Excel style filtering on a column header takes so long that I have to force close the application via the Windows Task Manager.
What's the best practice for handling these performance issues? I could create a index for every possible sort column (8 in total). But what if a user wants to sort on multiple columns at once? Then the created index no longer covers the query.
Solved
Performance when a user applies a sort order in the application
Best answer by Jasper
If disabling column sorting for some of the columns is not an option then yes, creating an index for every column would definately help. Although these indexes won't cover sorting on multiple columns at once they will speed up retrieving the top 1000 records for the first sorted column.
View originalThis topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.