Query Times + SQL CE
good afternoon,
i developed application mobile device, windows ce 5.00 , sql server compact edition 3.5.5386.0.
i have program running , have query of products returns, more or less, 100 descriptions + prices + stock quantities. use program daily, operations, , @ end of day export information to the pc, and after operation the program deletes data of database, on mobile device, , imports new data of pc.
what's bothering me time, query takes, return products information keeps getting bigger. happens is on first day, after full reset, takes 3 seconds return info, , showing it. 1 or 2 days after query takes 12 seconds, or more.
the operation of creating new database , importing takes 15 minutes internet, , during day use gprs having delete/create/import the database everyday not viable option.
since thought fact of size of database rising, i'm doing drops , creates of tables instead of deletes make sure there no indexes , garbage filling tables.
during the export of information use command sqlengine.shrink() make sure there no information dispensable on database.
because of led believe it's not size of database can't find can cause of happening.
if has ideas thankful.
yours sincerely,
miguel martins
hi miguel,
can let me know size of database file before , after use shrink() api. 'autoshrink threshold' set in connection string.
please read more "autoshrink threshold" here :
thanks & regards,
devesh anand
SQL Server > SQL Server Compact
Comments
Post a Comment