We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5726388 commit 98f8adcCopy full SHA for 98f8adc
prisma-local/migrations/20250910180000_transaction_addressid_timestamp_index/migration.sql
@@ -0,0 +1,4 @@
1
+-- Replace single-column index with composite (addressId, timestamp)
2
+ALTER TABLE `Transaction`
3
+ ADD INDEX `Transaction_addressId_timestamp_idx`(`addressId`, `timestamp`),
4
+ DROP INDEX `Transaction_addressId_fkey`;
prisma-local/schema.prisma
@@ -81,7 +81,7 @@ model Transaction {
81
updatedAt DateTime @updatedAt
82
83
@@unique([hash, addressId], name: "Transaction_hash_addressId_unique_constraint")
84
- @@index([addressId], map: "Transaction_addressId_fkey")
+ @@index([addressId, timestamp], map: "Transaction_addressId_timestamp_idx")
85
}
86
87
model Wallet {
0 commit comments