mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-16 16:15:53 +00:00
Add primary key index to latest AT state cache for extra speed!
This commit is contained in:
parent
2a789a9a9b
commit
41453f5bd1
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user