Hi, quick question about Indices for D1. I'm trying to improve my queries so that fewer rows have to
Hi, quick question about Indices for D1. I'm trying to improve my queries so that fewer rows have to be read. I'm using Prisma as my ORM and all my IDs are
Thanks in advance!
@id @default(uuid()). Do I need to add an explicit index for each id column? The docs say that they are added automatically, but only for INTEGER PRIMARY KEYS. Prisma generates TEXT NOT NULL PRIMARY KEY id columns. SELECT name, type, sql FROM sqlite_schema WHERE type IN ('index'); shows one sqlite autoindex for each table, for example sqlite_autoindex_Organization_1. Is that sufficient or will explicit id indices help with querying?Thanks in advance!



