The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Chronicle::Plugin::DBTweak - Speedup the import process

DESCRIPTION

This plugin is responsible for turning off database synchronization, which results in a significantly faster import process.

The downside is that we're at risk of data-lass within the SQLite database because we're not relying upon the operating system to sync the database between inserts.

For our use-case this is not a concern.

METHODS

Now follows documentation on the available methods.

on_db_load

This method is called when the database is opened, regardless of whether the database was created or already existed.

Here we set the pragmas to speedup the insertion process of new entries.