Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. While we try to maintain some independence from the JCR implementation, some code (in particular concerning low-level binary storage) is tightly bound to Modeshape, but where possible depends on the  public public API extensions to org.modeshape.jcr.api.
  2. Long-lived sessions with lots of changes is bad. 
  3. JCR loves hierarchy.
  4. Creating sessions is cheap. Saving sessions takes time.
  5. Nothing is persisted until the session is saved (almost.)
  6. Binary content is stored using the SHA-1 value as its key, meaning: 
    • only one copy of content is persisted to the storage layer (although the storage layer may keep multiple copies around)
    • content can be stored immediately, and lazily garbage collected
  7. Namespace prefixes must be pre-registered before they can be used

...