Skip to content

Batch OpenAPI plugin storage writes#893

Open
dmmulroy wants to merge 1 commit into
RhysSullivan:mainfrom
dmmulroy:fix/bulk-openapi-plugin-storage
Open

Batch OpenAPI plugin storage writes#893
dmmulroy wants to merge 1 commit into
RhysSullivan:mainfrom
dmmulroy:fix/bulk-openapi-plugin-storage

Conversation

@dmmulroy

@dmmulroy dmmulroy commented Jun 5, 2026

Copy link
Copy Markdown

Summary

  • add bulk put/remove operations to the plugin storage facade
  • use bulk plugin storage writes/removes for OpenAPI operation metadata
  • add plugin storage coverage for bulk writes/removes

Context

Adding the built-in GitHub REST OpenAPI preset currently issues thousands of sequential D1 operations for per-operation plugin storage rows, making the Cloudflare host request appear hung for ~100s.

Validation

  • PASS: bun run --cwd packages/core/sdk typecheck
  • PASS: bun run --cwd packages/plugins/openapi typecheck
  • PASS: cd packages/plugins/openapi && bunx vitest run src/sdk/plugin.test.ts src/sdk/real-specs.test.ts
  • PASS: cd packages/core/sdk && bunx vitest run src/plugin-storage.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant