SQL Server CE Toolbox Performance -


when run db query application using sql server ce 4.0 dlls, takes 5 times longer return results if run same query on same database using sql server ce toolbox plugin vs2010.

does know i'm doing wrong?

the query like:

select * column1 > '' , column2 < '' , column3 in (14)

the database file quite large @ ~600 mb , table query run against has more 3 million rows in it.

all 3 of columns used in query above indexed.

the query returns 5000 rows.

here query performance numbers:

  • my code: 1 second
  • sql server ce toolbox: 0.188 seconds

in c++ code, using atl/oledb access database:

ccommand<cdynamicparameteraccessorex> cmd;     hresult hr = videoscmd.create(dbsession,         querystmt.c_str());  void* pdummy;  // bind parameters. hr = cmd.bindparameters (/* can't show args here because of weirdness */);    // set second parameter- start time dbtimestamp dbstart; tzlocaltimetoutc(startlocal, &start_utc); converttime(start_utc, &dbstart); videoscmd.setparam(1, &dbstart);  // set first parameter- end time dbtimestamp dbend; tzlocaltimetoutc(endlocal, &end_utc); converttime(end_utc, &dbend); videoscmd.setparam(2, &dbend);  hr = cmd.open();  hr = cmd.movefirst(); 


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -