A
Aussie Rules
Hi
I have a program which gets around 30,000 records from a sql table.
When I do this for the first time in my application, it takes around 15
seconds for the dataset to be populated, however at any other time after the
first, it takes a split second to do it.
I assume this is some sort of caching going on, and I want to find a way to
do it to my advantage.
The problem is that when the user first views the data, the time(15+
seconds) is way to long. I was thinking that if its a caching issue, then I
could perhaps cache the data in the program start up. Problem is the program
use to start pretty quick, and now its taking at least the 15 seconds it
takes to get the data, which makes sense of course.
So then I thought I could do it in a thread so that the startup is not
slowed down, but that seems not to be working as I expected.
Is there any other trick(s) I could try. Its not a connection pool, as the
applicaton opens the connection up front with other commands, before doing
the big data query.
Thanks
I have a program which gets around 30,000 records from a sql table.
When I do this for the first time in my application, it takes around 15
seconds for the dataset to be populated, however at any other time after the
first, it takes a split second to do it.
I assume this is some sort of caching going on, and I want to find a way to
do it to my advantage.
The problem is that when the user first views the data, the time(15+
seconds) is way to long. I was thinking that if its a caching issue, then I
could perhaps cache the data in the program start up. Problem is the program
use to start pretty quick, and now its taking at least the 15 seconds it
takes to get the data, which makes sense of course.
So then I thought I could do it in a thread so that the startup is not
slowed down, but that seems not to be working as I expected.
Is there any other trick(s) I could try. Its not a connection pool, as the
applicaton opens the connection up front with other commands, before doing
the big data query.
Thanks