Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Caching advise

$
0
0

Dear all,

I have build a wpf application connected to a backend SQL server express database.

The database is containing now more than 100 records. We have on the application itself a filter behavior that customer select in order to retrieve data. But sometime customer do not use the filter and then all data returns in async mode.

This is ok like that but the main issue for the application is that it can takes minutes to gets the data return and displayed on screen. We have check the data base querry and the bottleneck is not from that side but more on the time needed to build different object for rendering them.

I was thinking on building a memory cache where I read all database data on application start then build all objects in a collection. Then when application is ready to run data are in memeory and filter can be apply on memeory instead of getting data from db and build objects.

Does it make sense ?

Do you have a better approach to solve my issue ?

Thnaks for advise

regards


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>