Take the State of DFIR Survey Caseloads, AI, tools and careers. 8 minutes, anonymous, early access to the report. Take the survey ›

Take the survey

Take the State of DFIR Survey

Caseloads, AI, tools and careers. 8 minutes, anonymous, early access to the report.

Take the survey →
Notifications
Clear all

SQLite vacuum

6 Posts
3 Users
0 Reactions
4,481 Views
(@forensicitderby)
Active Member
Joined: 12 years ago
Posts: 18
Topic starter   [#18553]

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: 20 years ago
Posts: 541

   
ReplyQuote
(@forensicitderby)
Active Member
Joined: 12 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: 16 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: 12 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: 16 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

Enterprise Partners

  • atola-logo
  • MagnetForensics_ForensicFocus
  • celebrite-logo
  • semantics21 2026 FF logo

Partners

  • ADF
  • Logo_MSAB_Black (2)
  • detego-logo
  • logo Belkasoft 135x100
  • gmdsoft-logo
  • Aid4Mail-Logo

Academic Partners

  • University of Southampton logo 2
Share: