Add index for finding Registered Names using 'reduced' form

This commit is contained in:
catbref 2020-05-15 14:18:51 +01:00
parent 197c742ce7
commit 7447ab20a9

View File

@ -292,6 +292,8 @@ public class HSQLDBDatabaseUpdates {
+ "PRIMARY KEY (name))");
// For finding names by owner
stmt.execute("CREATE INDEX NamesOwnerIndex ON Names (owner)");
// For finding names by 'reduced' form
stmt.execute("CREATE INDEX NamesReducedNameIndex ON Names (reduced_name)");
// Register Name Transactions
stmt.execute("CREATE TABLE RegisterNameTransactions (signature Signature, registrant QortalPublicKey NOT NULL, name RegisteredName NOT NULL, "