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 EXPERIMENTAL...
|
||||||
|
// XXX this will not work on nodejs...
|
||||||
|
// ...possible solutions would be:
|
||||||
|
// LevelDB
|
||||||
|
// indexeddb (npm)
|
||||||
// XXX see bugs/issues...
|
// XXX see bugs/issues...
|
||||||
// XXX not sure if we need this...
|
// XXX not sure if we need this...
|
||||||
var JournalDB =
|
var JournalDB =
|
||||||
@ -122,9 +126,7 @@ object.Constructor('JournalDB', {
|
|||||||
.objectStore('journal')
|
.objectStore('journal')
|
||||||
.add({
|
.add({
|
||||||
// high-resolution date...
|
// high-resolution date...
|
||||||
date:
|
date: Date.hires(),
|
||||||
performance.timing.navigationStart
|
|
||||||
+ performance.now(),
|
|
||||||
path,
|
path,
|
||||||
action,
|
action,
|
||||||
data,
|
data,
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
* XXX index: would be nice to somehow persistently auto-generate index id's...
|
* XXX index: would be nice to somehow persistently auto-generate index id's...
|
||||||
* ...maybe: "<prefix>:<path>" or something similar...
|
* ...maybe: "<prefix>:<path>" or something similar...
|
||||||
* ...would be nice to have store ids...
|
* ...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
|
* XXX <store>.journal: needed to break the update recursion -- i.e. decouple
|
||||||
* index .update(..) handlers from stored page updates by first
|
* index .update(..) handlers from stored page updates by first
|
||||||
* updating the journal and on a timer updating the .cache/<index> page...
|
* updating the journal and on a timer updating the .cache/<index> page...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user