Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DataSource Loading Performance

$
0
0
I'm currently investigating improving the initial load time of my application. My client is a single page app that loads in all data sources at load time. Currently my server dynamically generates all data sources for the client upon request. When a client connects, it gets a list of available data sources to use and then calls DataSource.load in batches of 50.

In order to improve load time of my page, I would like to save all my datasource configuration off to localStorage and then restore it the next time I hit the page. I have attempted to write code for this, but calling DataSource.create() does not yield the same result as DataSource.load(). Basically the datasources I create using my restore method do not connect back to the server properly.

I know this is a very specific request, but is there a way to accomplish this in smartclient? Can I save off and restore my datasource configuration so it can reconnect to the server? What additional settings would I need to use?

Viewing all articles
Browse latest Browse all 4756

Trending Articles