Compression in SQLite database .Net C# -


can blob (or other data) compressed (on fly) sqlite3 database? i'm using system.data.sqlite in c# targeting .net 3.5.

in search keep seeing connection strings so... "datasource=base.db;version=3;compress=true;"

but can find no information compress=true, i've added connection string testing , added file blob data there appears no compression, have tested example large text file, not compressed image or other file.

to limited knowledge, "compress=true" parameter in system.data.sqlite.sqliteconnection string not taken in account.

basically, kind of useless: there no built-in compression provided .net system.data.sqlite.

in order bring compression features system.data.sqlite world, have have 2 options:

  • using third party tools, whether including among 1 of c libraries , rebuilding system.data.sqlite based on it: proprietary sqlite extensions: see, cerod, zipvfs / sqlite crypt / etc. commercial orm devart based on ado.net offers support encryption options mentioned , seems can used seamlessly (although never tried use devart much).
  • creating wrapper around system.data.sqlite: whether converting data headers encapsulated data , inserting using collection of bytes blob data affinity. can way provide @ same time additional encryption process.of course, (much) slower c third-party libraries available , may not sufficient depending on requirements (insertions, updates,.., deletions speed), @ least free (and time-consuming) approach. can achieved through specific sqlite orm, should not hard implement quite time-consuming.

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -