Back

The Pinkary database just went from ~800MB to ~90MB.

How?

VACUUM;

🤯

4 • •

2K

•

The database had a lot of free pages due to a large number of row deletes over time. The Laravel Pulse package was the main cause of these deletes (recording entries and then deleting them after a period), but cache, jobs, etc also contributed to the free space that could be truncated off the file.

1 • •

953

•

Interesting indeed, do you mean that you've been working with laravel pulse using sqlite database?

1 • •

468

•

Yes. Pinkary is currently using Laravel Pulse, saving entries to the production database (which is sqlite).

3 • •

399

•
In response to @stevenfox

According to the docs, sqlite is not supported. I tried it myself in a hobby project. I got some errors open the Pulse dashboard. How did you manage that?

1 • •

161

•
  • No matching results...
  • Searching...

/ 1000

Ah. I think that's a mixup with the docs. It appears the accepted drivers are

['mariadb', 'mysql', 'pgsql', 'sqlite']

\Laravel\Pulse\Support\PulseMigration::shouldRun();

1 • •

209

•

Nice to hear. I did a little code diving. The error I get, is from a thrid party card. So I guess it's not a Pulse problem in general. The 3rd party card uses a raw query with a sql function not available in sqlite.

• •

83

•