graphql-engine/dc-agents/guides/OLTP.md
Brandon Martin 26b38bbe5b Initial commit for hub information
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9631
GitOrigin-RevId: 64c40a30e3483fb0322ce9f2fbb2e9c1e3f1d9ba
2023-06-21 20:24:53 +00:00

514 B

Hasura + SQL (OLTP)

What do people like doing with SQL DBs?

  • Normalize their data so that its easy to ensure consistency
  • Read short amounts of related data quickly by specifying filter/sort predicates
  • Write data in transactions to ensure consistency

The Hasura + X story:

  • Tables, views and functions that return relations become models
    • Models
  • A transaction becomes a command that takes an input model, whose body is the invocation of the transaction, and the output relation is the output model