Notifications
Clear all

SQLite vacuum

6 Posts
3 Users
0 Reactions
2,623 Views
(@forensicitderby)
Active Member
Joined: 10 years ago
Posts: 18
Topic starter  

Hello,

 

At what point does an SQLite database vacuum?

 

When a vacuum occurs, do all the SQLite databases on the device vacuum at the same time?

 

Is there a reoccurring time where it might vacuum without reason? Like every 4 weeks?

Thanks


   
Quote
Topic Tags
(@rich2005)
Honorable Member
Joined: 18 years ago
Posts: 541

   
ReplyQuote
(@forensicitderby)
Active Member
Joined: 10 years ago
Posts: 18
Topic starter  

This implies an auto vacuum will only occur if the app creator has added it individually to a particular app?


   
ReplyQuote
minime2k9
(@minime2k9)
Honorable Member
Joined: 14 years ago
Posts: 481
 
Posted by: @forensicitderby

This implies an auto vacuum will only occur if the app creator has added it individually to a particular app?

Correct - it is disabled by default and only activated if the software using it enables it.


   
ReplyQuote
(@forensicitderby)
Active Member
Joined: 10 years ago
Posts: 18
Topic starter  

thank you for your replies.

Does anyone happen to know if Photos, iMessage, WhatsApp and Facebook Messenger “auto vacuum” on iOS?


   
ReplyQuote
minime2k9
(@minime2k9)
Honorable Member
Joined: 14 years ago
Posts: 481
 

You can tell by looking at the header of the database:

https://www.sqlite.org/fileformat.html

Offset 52 Length 4 bytes

The page number of the largest root b-tree page when in auto-vacuum or incremental-vacuum modes, or zero otherwise.


   
ReplyQuote
Share: