Add index on DB Names.owner to help find names by owner

This commit is contained in:
catbref 2020-05-12 10:02:26 +01:00
parent 026c904ce4
commit 0d1c08bf96

View File

@ -289,6 +289,8 @@ public class HSQLDBDatabaseUpdates {
+ "registered_when EpochMillis NOT NULL, updated_when EpochMillis, creation_group_id GroupID NOT NULL DEFAULT 0, "
+ "reference Signature, is_for_sale BOOLEAN NOT NULL DEFAULT FALSE, sale_price QortalAmount, data NameData NOT NULL, "
+ "PRIMARY KEY (name))");
// For finding names by owner
stmt.execute("CREATE INDEX NamesOwnerIndex ON Names (owner)");
// Register Name Transactions
stmt.execute("CREATE TABLE RegisterNameTransactions (signature Signature, registrant QortalPublicKey NOT NULL, name RegisteredName NOT NULL, "