Skip to content

Docs: Dataflow schematic of Stdb #5415

Description

@website-features

it would be nice to have a dataflow schematic of how spacetimedb works.
where in the function chains gets the data copied into and from wasm:

  • ctx.db.table().column().find()
  • ctx.db.table().index().filter()
  • ctx.db.table().insert()
  • ctx.db.table().column().delete()
  • ctx.db.table().column().update()
  • ctx.db.table().iter()
  • when and where views run.
  • how the subscription response get's calculated
  • where and how the clog get's written
  • how the error rollback works. (do attempted row writes get counted to the energy cost?)
  • what runs in it's own thread? what uses more than one core? what shares a core?

and so on
it's basically about how to optimize and write stdb by understanding what is happening with the data inside and outside of wasm.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions