Skip to content

Is it possible to add "Using Drizzle on Cloudflare Workers" to website? #653

@rxliuli

Description

@rxliuli

There are some issues when using Prisma together with D1, such as

  1. Batch processing for D1 is not supported, and there are no transactions at all https://www.prisma.io/docs/orm/overview/databases/cloudflare-d1#transactions-not-supported
  2. Complex queries are not supported, such as multi-table Join SQL syntax Performance: How to make prisma perform a single SQL query with joins instead of multiple queries prisma/prisma#12715
  3. Single queries are very slow, usually over 200ms, which is quite strange. I believe this is related to the longer initialization time caused by Prisma internally using WASM https://github.com/prisma/prisma/discussions/23646#discussioncomment-9059560

I previously used Prisma + D1 because of the documentation, but later had to migrate to Drizzle, so maybe when using D1 it should recommend Drizzle instead of Prisma?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions