Skip to content

Commit

Permalink
Removed bad ideas
Browse files Browse the repository at this point in the history
  • Loading branch information
daitangio committed Dec 16, 2016
1 parent a734829 commit 78123cf
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 341 deletions.
8 changes: 0 additions & 8 deletions rtype/import-wiz.sql

This file was deleted.

39 changes: 1 addition & 38 deletions rtype/rtype-readme-first.txt
Expand Up @@ -4,7 +4,7 @@
#+Email: jj@gioorgi.com #+Email: jj@gioorgi.com
# ^c^v t to export code # ^c^v t to export code


* RType: your fastest Relational database :tryout: * RType: your fastest Relational database :BETA:


** A table is described as a /set/ of column names only ** A table is described as a /set/ of column names only
Internally the system can be meta-described by ordered set. Internally the system can be meta-described by ordered set.
Expand Down Expand Up @@ -65,45 +65,8 @@ RType core is based on embedded SQLite
** RType did not delete :beta: ** RType did not delete :beta:
RType mark elements for deletation only. RType mark elements for deletation only.
An async job re-build tables when system is on low load. An async job re-build tables when system is on low load.
** RType system can manage load peaks, but not constant load peaks
In low-load condition RType do the following actions:
1. Try to reduce to zero the async queue
2.
** No polling: Simple Event engine
RType provide also a event-listener model to attach event to set modifications like:
+ addition of a new element
+ mark-removal of an element
** RType has no transactional semantic :beta:
Storing data has a fixed, predictive cost.
** RType has no replication policy :beta:
Client library manage a pool of replicated RType system.
RType has a async operation model in which all operations are asyncronous.
A standard way of ensuing operation is to do a cascate set of async
operation, one after one.

** RType storage engine is pluggable. ** RType storage engine is pluggable.
The reference implementation provide a very fast engine The reference implementation provide a very fast engine
** Symbolic language support
RType is based on /atoms/ which are unique in the system.


* TODO RType secret trick: optimal for simple relational database :resee:
If you have a simple relational database, with a lot of one-to-many relations you can use RType to get the job done.
A small SQL-like declarative language is provided in RType for easy access:

#+begin_src js
db=RType.openDB("RType","root","toor")
db.add("myfriends", "jresig","bgates")
db.add("yourfirends", "jresing", "gking")
db.add("guy-description:jresing", "JQuery Master and Commander")
db.select("gui-description:*").from(db.select("*").from("myfriend"))
=>
["JQuery Master and Commander"]
#+end_src

Many2Many relations can be mapped via two pairs of one-to-many relations.


* Reference * Reference


1) http://research.swtch.com/sparse 1) http://research.swtch.com/sparse
Expand Down
58 changes: 0 additions & 58 deletions rtype/rtype2017-boot.sql

This file was deleted.

Empty file removed rtype/src/__init__.py
Empty file.
237 changes: 0 additions & 237 deletions rtype/src/rtype.py

This file was deleted.

0 comments on commit 78123cf

Please sign in to comment.