Skip to content

Commit

Permalink
Reduce max keys hints
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Tinker <[email protected]>
  • Loading branch information
tinker-michaelj committed Feb 14, 2024
1 parent 4c17a8c commit 14ea029
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class InitialModFileGenesisSchema extends Schema {
* A hint to the database system of the maximum number of files we will store. This MUST NOT BE CHANGED. If it is
* changed, then the database has to be rebuilt.
*/
private static final int MAX_FILES_HINT = 50_000_000;
private static final int MAX_FILES_HINT = 500_000_000;

private final ConfigProvider configProvider;
private Supplier<VirtualMapLike<VirtualBlobKey, VirtualBlobValue>> fss;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public class InitialModServiceContractSchema extends Schema {
private static final Logger log = LogManager.getLogger(InitialModServiceContractSchema.class);
public static final String STORAGE_KEY = "STORAGE";
public static final String BYTECODE_KEY = "BYTECODE";
private static final int MAX_BYTECODES = 50_000_000;
private static final int MAX_STORAGE_ENTRIES = 500_000_000;
private static final int MAX_BYTECODES = 500_000_000;
private static final int MAX_STORAGE_ENTRIES = 1_000_000_000;

private VirtualMapLike<ContractKey, IterableContractValue> storageFromState;
private Supplier<VirtualMapLike<VirtualBlobKey, VirtualBlobValue>> contractBytecodeFromState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ public class InitialModServiceTokenSchema extends Schema {
// These need to be big so databases are created at right scale. If they are too small then the on disk hash map
// buckets will be too full which results in very poor performance. Have chosen 10 billion as should give us
// plenty of runway.
private static final long MAX_TOKENS = 10_000_000_000L;
private static final long MAX_ACCOUNTS = 10_000_000_000L;
private static final long MAX_TOKEN_RELS = 10_000_000_000L;
private static final long MAX_MINTABLE_NFTS = 10_000_000_000L;
private static final long MAX_TOKENS = 1_000_000_000L;
private static final long MAX_ACCOUNTS = 1_000_000_000L;
private static final long MAX_TOKEN_RELS = 1_000_000_000L;
private static final long MAX_MINTABLE_NFTS = 1_000_000_000L;
private static final long FIRST_RESERVED_SYSTEM_CONTRACT = 350L;
private static final long LAST_RESERVED_SYSTEM_CONTRACT = 399L;
private static final long FIRST_POST_SYSTEM_FILE_ENTITY = 200L;
Expand Down

0 comments on commit 14ea029

Please sign in to comment.