added index for deposits table

This commit is contained in:
Fournier Nicolas 2015-07-31 15:06:07 +02:00
parent aa563f3e4a
commit c6d7c6adb2

View File

@ -404,6 +404,9 @@ postgres_create_tables (void *cls,
",coin_sig BYTEA NOT NULL CHECK (LENGTH(coin_sig)=64)" ",coin_sig BYTEA NOT NULL CHECK (LENGTH(coin_sig)=64)"
",wire TEXT NOT NULL" ",wire TEXT NOT NULL"
")"); ")");
/* Index for get_deposit statement on coin_pub, transactiojn_id and merchant_pub */
SQLEXEC_INDEX("CREATE INDEX deposits_coin_pub_index "
"ON deposits(coin_pub, transaction_id, merchant_pub)");
#undef SQLEXEC #undef SQLEXEC
#undef SQLEXEC_INDEX #undef SQLEXEC_INDEX