Migration just stalls and hangs.
sometimes, when i perform prisma migrate to either create a new migration or run migration, it just hangs. what are some of the reasons for that happening?
we haven't gone production yet but this is super scary. it happens to me from a fresh database after like 2 or 3 days later. we do have a custom BM25 index.
its scary because the only way to get migration to work again is if i do a complete drop database and start over.
7 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!Hey 👋
Does this happen on latest prisma version?
Does the process still hang even if you kill the process with
Cmd+C
and run prisma migrate again?Yes to both
Hmm!
We would need a minimal reproduction to figure our what's going on.
Does this happen even if you remove the BM25 index?
@Nurul (Prisma) yes it still hangs even after i have removed the index from schema:
// @@index([id, name, description], map: "product_bm25_idx")
as well as after i dropped the BM25 index manually from database table.
attached screenshot is how it hangs.

and this is the migration file for adding bm25 index:
Strange! Are you on the latest prisma version?
Do you mind creating a GitHub Issue so that our ORM team can have a look and provide insights?
https://github.com/prisma/prisma/issues/