mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] sqlite: version bump and improved build options
Date: Wed, 15 Jun 2016 19:46:45 +0200	[thread overview]
Message-ID: <20160615174645.GA30307@archie.localdomain> (raw)
In-Reply-To: <d56b6f32-67d7-3d1e-2685-bd0e977adea8@pengutronix.de>

On Wed, Jun 15, 2016 at 08:46:37AM +0200, Marc Kleine-Budde wrote:
> On 06/15/2016 07:08 AM, Michael Olbrich wrote:
> > On Wed, Jun 15, 2016 at 12:21:19AM +0200, Clemens Gruber wrote:
> >> - Bump the version to 3.13.0: http://sqlite.org/releaselog/3_13_0.html
> >> - Using FTS4 also enables FTS3, they share most of their code and FTS4
> >>   is recommended for new applications. (Better query performance)
> >> - Include the JSON1 functions
> >> - The lookaside memory allocator should not be disabled, it is the
> >>   default allocator since 3.6.1 and is much quicker. 50KB per database
> >>   connection are used for the memory pool but this can be changed at
> >>   runtime, if a smaller memory footprint is required.
> >> - SECURE_DELETE should not be the default, those who need it can always
> >>   enable it at runtime with the secure_delete pragma. That build option
> >>   only controls the default value.
> > 
> > Marc, you introduced these options. Can you comment?
> 
> Sorry, I don't remember why I switched on these options.

Maybe it was a usecase with extremely low memory footprint and security
critical data stored in the database?
Or the lookaside allocator was deemed too new and not stable enough back
then.

Today, I see no reason to disable the lookaside allocator. It causes
less latency and is only a little heavier on memory. Also if the slots
are full or for larger allocations, SQLite falls back to malloc anyway.

Secure delete has a significant performance penalty. Users can always
opt-in with PRAGMA secure_delete = 1; if they need to zero out deleted
content.
Also, due to the limited number of erase cycles on flash storage, I
would rather encrypt the data than zero it out. (SQLCipher extension!)
Then I'd only have to throw away the key. 

Clemens

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2016-06-15 17:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14 22:21 [ptxdist] [PATCH] dbus: version bump to 1.10.8 Clemens Gruber
2016-06-14 22:21 ` [ptxdist] [PATCH] radvd: bump version to 2.13 Clemens Gruber
2016-06-14 22:21 ` [ptxdist] [PATCH] sqlite: version bump and improved build options Clemens Gruber
2016-06-15  5:08   ` Michael Olbrich
2016-06-15  6:46     ` Marc Kleine-Budde
2016-06-15 17:46       ` Clemens Gruber [this message]
2016-06-14 22:21 ` [ptxdist] [PATCH] util-linux-ng: add zramctl option Clemens Gruber
2016-06-14 22:21 ` [ptxdist] [PATCH] util-linux-ng: enable systemd flag if systemd is used Clemens Gruber
2016-06-15  5:10   ` Michael Olbrich
2016-06-15 18:09     ` Clemens Gruber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160615174645.GA30307@archie.localdomain \
    --to=clemens.gruber@pqgruber.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox