From f91206e4ab888faa3431fb20e0f283a185145392 Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Mon, 3 Jul 2023 11:32:25 +0200 Subject: [PATCH] fix: add missing PieceDeal (PieceCid) index --- extern/boostd-data/yugabyte/create.cql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extern/boostd-data/yugabyte/create.cql b/extern/boostd-data/yugabyte/create.cql index 0e7c01e48..fba47dbe4 100644 --- a/extern/boostd-data/yugabyte/create.cql +++ b/extern/boostd-data/yugabyte/create.cql @@ -41,4 +41,6 @@ CREATE TABLE IF NOT EXISTS idx.PieceDeal ( PieceOffset BIGINT, PieceLength BIGINT, CarLength BIGINT -); +) WITH transactions = { 'enabled' : true }; + +CREATE INDEX IF NOT EXISTS PieceDealPieceCid ON idx.PieceDeal (PieceCid);