tweaks and notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-11-14 17:48:06 +03:00
parent 19a521121e
commit 31a270fcd9
2 changed files with 9 additions and 3 deletions

View File

@ -19,6 +19,10 @@ var index = require('../index')
//---------------------------------------------------------------------
// XXX EXPERIMENTAL...
// XXX this will not work on nodejs...
// ...possible solutions would be:
// LevelDB
// indexeddb (npm)
// XXX see bugs/issues...
// XXX not sure if we need this...
var JournalDB =
@ -122,9 +126,7 @@ object.Constructor('JournalDB', {
.objectStore('journal')
.add({
// high-resolution date...
date:
performance.timing.navigationStart
+ performance.now(),
date: Date.hires(),
path,
action,
data,

View File

@ -40,6 +40,10 @@
* XXX index: would be nice to somehow persistently auto-generate index id's...
* ...maybe: "<prefix>:<path>" or something similar...
* ...would be nice to have store ids...
* XXX index: journal: might be a fun idea to try a simple sync file store
* - a json format simply appending elements in the format:
* ',\n\t[ ... ]'
* - appending a '\n}' on exit
* XXX <store>.journal: needed to break the update recursion -- i.e. decouple
* index .update(..) handlers from stored page updates by first
* updating the journal and on a timer updating the .cache/<index> page...