Skip to content
/ Fsion Public

Bringing together datums, the atoms of data. EAVT (Entity, Attribute, Value, Time) database for F#

License

Notifications You must be signed in to change notification settings

ma3yta/Fsion

Repository files navigation

Fsion

Linux Build Windows Build NuGet Badge

Pronounced Fusion - EAVT (Entity, Attribute, Value, Time) database for F#

Plasmaware currently but here is an outline.

Key ideas

  • Full bi-temporal historic and audit querying like Datomic but with (Business Date, Value, Transaction Id) compressed time-series.
  • Embedded
    • server (or client) can perform typed queries in memory. Bye-bye sending strings to a database machine.
    • scale up rather than out using in memory querying and local disk. Much simpler and cheaper $/perf.
    • in memory or memory and disk using FASTER.
  • Native Attributes
    • richer metadata: F# types, constraints (checked client side), display, localization, powerful F# custom aggregation.
    • F# function attributes and constraints (persist only real datums), saves memory and disk, think DAG.
  • Transactions
    • just a normal entity, attach custom context attributes.
    • persist to cloud and local storage, send to clients or replicas.
    • query side tx id only updated if dependent constraint attributes pass, easier what-if functionality.
    • run in parallel if no shared dependent constraints.
  • Views
    • F# functions that take unstructured datums to fully type safe data structures.
  • Indexes
    • like Datomic (hidden, automatic) EAVT, AEVT, VAET etc.
  • API
    • binary Socket, Linq, Excel.
    • think more GraphQL and XPath rather than SQL.
  • Not Datomic
    • time-series compression.
    • entities do have a type. I think this will lead to type safe relations, faster query and better compression.
    • not SQL based, either typed in memory query or simple XPath/GraphQL expressions.

Having built parts of this multiple times I want to create a high-quality OSS version and build on it.

Happy to discuss further in the issues section. Welcome anyone else coming on board.

Roadmap

  • Set up the repo (build, CI etc) - DONE
  • DataSeries with compression - DONE
  • Define internal APIs (DB, Log) with in memory and disk implementations - DONE
  • Simple Excel API - DONE
  • Transactor - DONE
  • Attribute metadata and functionality - DONE but more to do
  • Refactor to decouple Transactor and Selector - February
  • Large sample database - February
  • Other internal API implementations
  • Performance and resilience tests
  • Indexes
  • Query language
  • Other external APIs
  • Views
  • Satellite projects
    • Data mapping
    • Reconciliation
    • Permissions
    • Scheduling
    • Accounting attribute functions with aggregation

Query language ideas

person[height>160] { name height homeworld[population<1e9] { name created } films[title='A New Hope'] { } }

About

Bringing together datums, the atoms of data. EAVT (Entity, Attribute, Value, Time) database for F#

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages