Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client): use externally provided byte schema + Cloudflare KV example #23196

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

jkomyno
Copy link
Contributor

@jkomyno jkomyno commented Feb 20, 2024

This PR is a follow-up of prisma/prisma-engines#4708 and #23045 which demonstrates a POC that allows loading a byte-encoded Prisma Schema on demand via Cloudflare KV.

This step:

  • allows the Wasm Query Engine to not provide any PSL parsing/validation logic (~59 KB reduction after gzip)
  • potentially allows Prisma Client to stop bundling schema.prisma

@jkomyno jkomyno self-assigned this Feb 20, 2024
@jkomyno jkomyno changed the title Feat/externally provided byte schema feat(client): use externally provided byte schema + Cloudflare KV example Feb 20, 2024
Copy link
Contributor

size-limit report 📦

Path Size
packages/client/runtime/library.js 177.04 KB (+0.23% 🔺)
packages/client/runtime/library.d.ts 81 B (0%)
packages/client/runtime/binary.js 601 KB (+0.07% 🔺)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 155.67 KB (+0.26% 🔺)
packages/client/runtime/edge-esm.js 155.56 KB (+0.26% 🔺)
packages/client/runtime/wasm.js 147.44 KB (+0.25% 🔺)
packages/client/runtime/index-browser.js 33.5 KB (0%)
packages/client/runtime/index-browser.d.ts 89 B (0%)
packages/cli/build/index.js 2.71 MB (+0.02% 🔺)
packages/client/prisma-client-0.0.0.tgz 3.68 MB (-4.12% 🔽)
packages/cli/prisma-0.0.0.tgz 3.89 MB (+0.39% 🔺)
packages/bundle-size/da-workers-libsql/output.tgz 846.51 KB (-5.89% 🔽)
packages/bundle-size/da-workers-neon/output.tgz 884.57 KB (-6.65% 🔽)
packages/bundle-size/da-workers-pg/output.tgz 906.2 KB (-6.51% 🔽)
packages/bundle-size/da-workers-planetscale/output.tgz 832.61 KB (-6.37% 🔽)
packages/bundle-size/da-workers-d1/output.tgz 819.39 KB (-6.08% 🔽)

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.

None yet

2 participants