Add primary key index to latest AT state cache for extra speed!

This commit is contained in:
catbref 2020-12-29 17:57:20 +00:00
parent 2a789a9a9b
commit 41453f5bd1

View File

@ -776,8 +776,7 @@ public class HSQLDBDatabaseUpdates {
stmt.execute("DROP TABLE IF EXISTS LatestATStates"); stmt.execute("DROP TABLE IF EXISTS LatestATStates");
stmt.execute("CREATE TABLE IF NOT EXISTS LatestATStates (" stmt.execute("CREATE TABLE IF NOT EXISTS LatestATStates ("
+ "AT_address QortalAddress NOT NULL, " + "AT_address QortalAddress NOT NULL, "
+ "height INT NOT NULL" + "height INT NOT NULL, PRIMARY KEY (height, AT_address))");
+ ")");
break; break;
default: default: