forked from Qortal-Forker/qortal
Add primary key index to latest AT state cache for extra speed!
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user