Re: Is it just me or are there BIG problems with SQLCE 3.0?
- From: An o' Neamus <oneamus@xxxxxxxxx>
- Date: Tue, 09 Oct 2007 10:12:38 -0700
On Oct 6, 6:19 pm, "William Vaughn" <billvaNoS...@xxxxxxxxx> wrote:
One trick you might try is to keep a connection to the database open. If you
use the Open update Close technique, the database is compressed at the final
close. Keeping a connection open postpones this operation.
Thanks. This doesn't appear to improve performance much (if at all).
What does happen though, is that the amount of free memory on the
device gradually decreases until it's about 240Kb. It doesn't
completely run out, with 500Kb being freed before it gets a chance to
completely run out. If you then do something else on the device that
(in combination with the test program) causes the device memory to
drop to about 140Kb, then (I guess it panics) and 1Mb gets freed.
Rinse and repeat.
Same device, same program, one connection, closing the connection
often, obviously slows it down, but keeps the available memory around
6Mb.
Is this a random example that causes a need to close and reopen the
connection (to avoid a GPF)? Is the general rule to keep one
connection open for the life of the program? Will adding complexity to
the program and tables possibly change the environment such that the
GPF might not happen (this example is obviously much less complex than
the actual application's database needs)? Should we design the
application so that it occasionally closes and reopens the database
(bearing in mind it has to run indefinitely, and at least for 30
days)?
TIA
.
- Follow-Ups:
- Re: Is it just me or are there BIG problems with SQLCE 3.0?
- From: An o' Neamus
- Re: Is it just me or are there BIG problems with SQLCE 3.0?
- References:
- Is it just me or are there BIG problems with SQLCE 3.0?
- From: An o' Neamus
- Re: Is it just me or are there BIG problems with SQLCE 3.0?
- From: William Vaughn
- Is it just me or are there BIG problems with SQLCE 3.0?
- Prev by Date: Re: Is it just me or are there BIG problems with SQLCE 3.0?
- Next by Date: Re: Is it just me or are there BIG problems with SQLCE 3.0?
- Previous by thread: Re: Is it just me or are there BIG problems with SQLCE 3.0?
- Next by thread: Re: Is it just me or are there BIG problems with SQLCE 3.0?
- Index(es):
Relevant Pages
|
Loading