When a large SQLite database comes out of an extraction, can you recover a deleted record and show exactly where it came from? In our 2.02 GiB test, Firefly 1.0.3.2 recovered a deliberately deleted record as a complete 39-byte cell on page 3 at file offset 12,213 (0x2FB5). That location matched the test manifest.
Most mobile app databases are smaller, but a large photo or health database can reach the gigabyte range. We generated a 2.02 GiB SQLite database with a known deletion so we could check the recovered record against the original bytes. The timings below describe this test file and workstation.
Recovering a deleted record from a 2.02 GiB SQLite database
We ran Firefly SQLite Analyzer 1.0.3.2 on a working copy of a synthetic SQLite database with 525,000 rows in its message table.
We put the control record in a separate table, recovery_probe, then deleted it before testing. The table showed three live rows when we opened the database. In Analyze Unallocated Space, Firefly examined 528,998 of the main file’s 528,999 pages and recovered one record, classified Complete. The result showed row ID 4, marker ELUSIVE-FICTIONAL-SQLITE-RECORD-04, and the entire 39-byte SQLite cell. The marker and source location match the record deleted during setup.

Opening, querying and recovering in the same test
| Operation | Time in this test | Result |
|---|---|---|
| Open the working copy | About 6.1 seconds | Table list visible and database open in read-only mode. |
| Query using the account, thread and timestamp index | 13.8 ms | One matching message. |
Repeat with a forced scan of the message table | 3,173 ms | The same message. |
| Classify pages in the Unallocated view | About 12 seconds | The page map identified 40 nonzero bytes in the unallocated area of page 3. |
| Run Analyze Unallocated Space on the main file | 122.6 seconds (about 2 min 3 s) | One complete test record recovered. |
The test ran on one Windows 11 workstation with an Intel Core i7-11800H, 32 GB RAM and a WD_BLACK SN750 2 TB NVMe SSD. Each step was measured once. Before opening Firefly, generating the fixture with Python took 44 seconds on the same workstation. Opening was timed from selecting Open to the table list appearing. Firefly displayed both SQL timings. The page classification and recovery timings were recorded separately.
The working copy was 2,166,779,904 bytes. Firefly’s displayed SHA-256 matched the test manifest, and the copy’s SHA-256 remained the same before and after the run. The fixture had no companion WAL, SHM or rollback journal.

How to examine a large SQLite database after extraction
- Preserve the files that came together. Keep the database and any matching write-ahead log (
-wal), shared-memory file (-shm) or rollback journal (-journal) supplied by the extraction. Record which files are available and analyze a working copy. - Find the tables that matter. Use Find in Database to look for a known identifier or distinctive text. Note which tables Firefly searched or skipped. Use the matches to focus a query on the relevant tables.
- Examine data beyond the current rows. Review earlier page versions in the WAL or rollback journal where available. Check relevant freelist pages, freeblocks and unallocated space inside database pages.
- Check the value at its source. Record the file, page and byte offset where available, and inspect the bytes in Hex Workbench. Document which parts of a record survived and which interpretations the evidence leaves open.
- Prepare a reviewable finding. Record the scope of the search, the source of the finding and the reasoning used to interpret it.
Where can SQLite records survive?
| Source | What to look for |
|---|---|
| Database tables | The current logical view and how fields relate across tables. |
| Write-ahead log (WAL) | Revised page contents, including page versions that may hold earlier field values. |
| Rollback journal | Original page contents saved while SQLite was making a transaction, if the journal survives. |
| Freelist pages | Pages SQLite has released for reuse that may still contain usable data. |
| Freeblocks and unallocated space | Bytes inside a database page that may retain a record or part of one. |
Recoverability depends on the available source files and what remains in them. Page reuse, overwriting and application behavior affect what survives. When only part of a record survives, report the supported fields and the gaps. Classifying a record as deleted, updated or replaced requires evidence about how the source and application recorded the change.
See the worked SQLite unallocated-space recovery example and the SQLite WAL analysis guide.
How do you scope a search in a large SQLite database?
The SQL part of the test looked for a message for account 7 and thread t-027 within a two-second UTC window. Establish the timestamp unit and window, then record the tables and columns queried and which companion files were available.
SELECT id, sent_utc
FROM message INDEXED BY message_account_thread_time
WHERE account_id = 7 AND thread_token = 't-027' AND sent_utc >= 1700045678 AND sent_utc < 1700045680
ORDER BY id;
The fixture’s reference check in SQLite 3.50.4 confirmed a covering index lookup. Substituting FROM message NOT INDEXED forced a table scan. Both query paths in Firefly returned message ID 45679 and Unix timestamp 1700045679, matching the manifest. Searching live rows and checking recoverable page space answer different questions about the same database.
Try the query on a smaller practice database
Run this setup in a new disposable SQLite database. It creates 100,000 synthetic rows with the same match.
CREATE TABLE message ( id INTEGER PRIMARY KEY, account_id INTEGER NOT NULL, thread_token TEXT NOT NULL, sent_utc INTEGER NOT NULL
); WITH RECURSIVE seq(id) AS ( VALUES (1) UNION ALL SELECT id + 1 FROM seq WHERE id < 100000
)
INSERT INTO message
SELECT id, id % 11, printf('t-%03d', id % 101), 1700000000 + id
FROM seq; CREATE INDEX message_account_thread_time
ON message(account_id, thread_token, sent_utc);
Run the query above in this database. To compare access paths, repeat it with EXPLAIN QUERY PLAN, followed by the version with FROM message NOT INDEXED. The exact plan text can vary with the SQLite version.
How should you measure a large SQLite examination?
Start with the task the examiner needs to complete. An indexed lookup, a search across tables and a scan for recoverable records examine different portions of the evidence. Record each operation separately. For SQL, the SQLite query plan can show whether a relevant index is used or the query scans a table. For recovery, record the areas examined, which fields survived and how you checked them.
Record file sizes and hashes, tool version, settings, workstation and storage. For repeated tests, note whether the input was already cached when that distinction is known. See the source-validation checklist and the SQLite forensic analysis guide.
See the workflow in Firefly
Bring a representative examination question to a demo. We can walk through finding the relevant table, checking a recoverable value at its source and preparing a result for review.




