Skip to content

Reduce /api/tools server time: skip stale-sync on read, filter listOperations by integration #4

Description

@amondnet

Sub-task of #3 (Fix A).

toolsList runs syncStaleConnectionTools on every list call (2 unconditional D1 queries even when nothing changed): packages/core/sdk/src/executor.ts:2475 (call), :2438 (definition). listOperations also reads the entire plugin_storage operation set and filters in JS: packages/plugins/openapi/src/sdk/store.ts:150-156.

Tasks:

  • Skip stale-sync on the read path when no integration has been revised (cache the check, or move sync to write-time / background).
  • Filter listOperations by integration at the DB layer instead of scanning all rows.
  • Narrow vitest run for the changed packages.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions