X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=README;h=14d7b0e48adcf346e0d52d1b3c67ca47814e40f5;hb=c81ec6ac02c496e12402d1e0999aac1912abaddb;hp=b2da9d11362572690c8a1010fd311a568139900b;hpb=df6d068ffdddf496ce775f4b0417743da886c39e;p=MojoFacets.git diff --git a/README b/README index b2da9d1..14d7b0e 100644 --- a/README +++ b/README @@ -18,31 +18,39 @@ Start with: LANG=hr_HR.utf8 ./script/mojo_facets daemon --reload -Data replication: - - # master - ./script/mojo_facets daemon --listen 'http://*:4444' --reload +Changing tabular data: - # slave - MASTER=http://localhost:4444 ./script/mojo_facets daemon --reload +Just double click on any table cell and click outside or focus out to save change. -Turning actions into changes: +Data action and changes: There are two kinds of audit log in MojoFacets: -1. actions stored in /tmp/actions are clicks on user interface with parameters +1. actions stored in /tmp/actions are clicks on user interface with parameters, + they will probably be erased on next reboot since they are in /tmp + +2. changes in data/database.changes are more structured, including old value + and unique identifiers for that row + +Changes can be applied on any dataset currently in memory. -2. changes are more structured, including old value and unique values from - edit of one value in dataset +Whole idea of changes is to create audit log which is detailed enough to recostruct +current state of dataset from source file and list of changes. However, to speed +up operations, you can periodically save your in-memory data to /tmp/ in perl +storeable format using save link in interface. -If you want to create changes which can be applied again on original dataset or -any other dataset which has same unique values you can use helper script: - $ ./script/actions-to-changes /data/mojo_facets/* +Data replication: + +Actions can be replicated to other hosts using MASTER enviroment variable +or config menu + + # slave + MASTER=http://localhost:4444 ./script/mojo_facets daemon --reload -Modify your data using perl snippets: +Code console to modify data using perl snippets: Experimental REPL console supports perl snippets which get $row hash which is one element from your dataset. @@ -50,6 +58,10 @@ element from your dataset. If you want to create or update values, you will have to use $update hash to set new values. +If you want to report something from your dataset (also called reduce in map/reduce +terminology) you can use $out hash to store values which will be used to generate +new dataset using $key and $value for column names. + All values are repetable, but if you create just a scalar, magic(tm) inside MojoFacets will try to upgrade it to [ $scalar ] so you don't have to do it explicitly.