0

I currently trying to decide which embedded database to pick up for new .NET project. There are 2 candidates: SQLite and SQL CE.

I put the performance on first place. But it is also important, are there support for microORM tools like Dapper-dot-net or Simple.Data.

If you tried both and have opinion on that, I would be happy to hear!

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Alexander Beletsky
  • 19,453
  • 9
  • 63
  • 86

2 Answers2

2

I've used both*, and when you say "performance" is your primary concern, you need to be a bit more specific.

For example, executing many inserts/updates in SQLite is quite a bit slower, unless you wrap them all in a single transaction and commit at the end. SQL CE's query syntax is somewhat simplier, meaning I had to execute multiple commands and merge / manipulate data in code.

Given the wide variety of use cases for "performance" (latency, queries / second, rows / second, even code or DB size), I suggest you wire up a harness and do some hands-on testing. I did the same a while back in our comparison, but in the end realized we were better served using the SQLite callbacks to do some manipulation.

SQL CE 3.5 and SQLite.Net, so I wasn't using the latest, or I was using a proxy wrapper which adds a smidgeon of overhead.

jklemmack
  • 3,518
  • 3
  • 30
  • 56
1

The only advantage in .NET for SQL CE i can think of is the ability to integrate it on the designer.

On the other hand, in regard to speed, SQL standard compliance and memory usage, I would strongly recommend that you use SQLite.

Don't get me wrong, I believe SQL CE is a wonderful database, but also bear in mind that SQLite is compiled in one DLL file, and can be used in any .Net product.

nawfal
  • 70,104
  • 56
  • 326
  • 368
user496607
  • 442
  • 1
  • 10
  • 21
  • Actually, SQLite supports the query designer in VS2008. http://sqlite.phxsoftware.com/readme.htm – jklemmack Jan 15 '12 at 18:59
  • //in regard to speed, SQL standard compliance ..., I would strongly recommend that you use SQLite.// reference needed – nawfal Feb 21 '13 at 08:57