[history-v1] add readOnly lookup for raw chunks (#23318)

* [history-v1] add readOnly lookup for raw chunks

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>

* [history-v1] reduce min poolsize for readOnly pool to 0

Co-authored-by: Brian Gough <brian.gough@overleaf.com>

---------

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
Co-authored-by: Brian Gough <brian.gough@overleaf.com>
GitOrigin-RevId: a711c4ee4f3ea3775bd090e620d1ef52689fa1f4
This commit is contained in:
Jakob Ackermann
2025-02-04 09:04:52 +00:00
committed by Copybot
co-authored by Eric Mc Sween Brian Gough
parent 01ed0c10a0
commit 3a4c5a0d0f
16 changed files with 96 additions and 12 deletions
@@ -117,7 +117,8 @@ function checkFileTreeNeedsResync(folder) {
async function getLastEndTimestamp(projectId, historyId) {
const raw = await HistoryStoreManager.promises.getMostRecentVersionRaw(
projectId,
historyId
historyId,
{ readOnly: true }
)
if (!raw) throw new Error('bug: history not initialized')
return raw.endTimestamp