index for reserves_out table

This commit is contained in:
Fournier Nicolas 2015-07-31 16:34:46 +02:00
parent 647d581ff2
commit 7ba2491031

View File

@ -288,6 +288,8 @@ postgres_create_tables (void *cls,
/* Index blindcoins(reserve_pub) for get_reserves_out statement */ /* Index blindcoins(reserve_pub) for get_reserves_out statement */
SQLEXEC_INDEX ("CREATE INDEX reserves_out_reserve_pub_index ON" SQLEXEC_INDEX ("CREATE INDEX reserves_out_reserve_pub_index ON"
" reserves_out (reserve_pub)"); " reserves_out (reserve_pub)");
SQLEXEC_INDEX ("CREATE INDEX reserves_out_h_blind_ev_index ON "
"reserves_out (h_blind_ev)");
/* Table with coins that have been (partially) spent, used to track /* Table with coins that have been (partially) spent, used to track
coin information only once. coin information only once.
TODO: maybe eliminate, this might be over-normalization (#3811) */ TODO: maybe eliminate, this might be over-normalization (#3811) */