Closed raineorshine closed 1 year ago
The call to getLastKey is not needed, as addAutoKey returns the last key. We just need to save it after each update.
getLastKey
addAutoKey
This results in one fewer IDBTransaction by fetchUpdates.
Tests all pass and the change has been used in a live application, though care should be taken as test coverage of _dbref is limited.
_dbref
The call to
getLastKey
is not needed, asaddAutoKey
returns the last key. We just need to save it after each update.This results in one fewer IDBTransaction by fetchUpdates.
Tests all pass and the change has been used in a live application, though care should be taken as test coverage of
_dbref
is limited.