Skip to content

v0.9.1

Choose a tag to compare

@jaspertey jaspertey released this 29 Oct 03:36
d6fd974

Changed

  • The current workspace and a user's memberships are read once per request and remembered in a request-scoped RequestMemo (bound with scoped(), so it's dropped between requests, queued jobs and Octane requests; no cache store). It's cleared by writes to the membership, ownership, workspace, user and role tables, by a transaction rollback, and when the workspace context is entered or left. For 5 repeated calls in one request: member() 20 → 4 queries, workspacesOf() 25 → 5, current() 5 → 1 (#141, closes #128).

Known limitations

  • A host that writes those tables over another database connection, or with query events off, sees the remembered reads until the request ends.

What's Changed

Full Changelog: v0.9.0...v0.9.1