mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-20 18:11:41 +00:00
tweaks and notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
19a521121e
commit
31a270fcd9
@ -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,
|
||||
|
||||
@ -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...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user