Files
AFFiNE-Mirror/packages/backend/server
DarkSky 9677bdf50d feat(server): skip cleanup for stale workspace (#13418)
fix AI-408

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a new field to workspaces to track the last time embeddings were
checked.
* Cleanup jobs for workspace embeddings now skip workspaces that haven't
changed in over 30 days or have no embeddings, improving efficiency.
* Cleanup jobs are now automatically triggered when a workspace is
updated.

* **Improvements**
* Enhanced workspace selection for cleanup and indexing tasks to use
more precise filters and batching.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-06 08:11:50 +00:00
..
2025-08-01 17:33:13 +08:00
2024-12-24 15:29:48 +08:00

Server

Get started

Install dependencies

yarn

Build Native binding

yarn affine @affine/server-native build

Run server

yarn dev

now you can access the server GraphQL endpoint at http://localhost:3000/graphql