Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was trying to insert a.wav file of size 1 mb in my mobile application
But it takes a long time to insert into the databe ,about 1 min.
How can I improve the sql Ce insert perfomance??
Posted
Updated 5-Oct-10 22:41pm
v2

Hai Hiren,
can u suggest me some useful links to perform the insertion through the base table cursor method.
.
Thanks in advance.
 
Share this answer
 
v2
Inserting through a SQL statement is slow even if you use a parameterized
and prepared statement. The fastest way to insert records in SQL CE 2.0 is
through the base table cursor, an option that is not available through .NET
CF. I am writing a managed wrapper to the OLE DB interfaces of SQL CE 2.0
and already managed to benchmark both approaches on an iPAQ 3850. The base
table approach can be up to 5 times faster than a prepared and parameterized
SQL INSERT statement.
This will be a non-issue with CF 2.0 as it exposes the base table cursor
through the SqlCeResultSet class.

Please vote and Accept Answer if it Helped.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900