forked from ordinals/ord
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase default maximum index size for non-regtest chains (ordinals#448
) The ordinal index, stored in <ORD_DATA_DIR>/index.redb, is a redb database, which grows dynamically. However, the maximum size that the database can grow to must be declared up-front, to avoid expensive region allocation operations on insert. We've been using 10 MiB as the default index size, which is too small for anything but testing. This commit changes the default maximum index size to 1 TiB on mainnet, testnet, and signet, and leaves it at 10 MiB on regtest. 1 TiB is more than needed, as even the mainnet database is only ~50 GiB, but allocating a database is fast enough, so it doesn't hurt to over provision and not have to think about it. For testing though, which is done with `--chain=regtest`, we want database allocation is fast, and 10 MiB is more than enough.
- Loading branch information
Showing
5 changed files
with
83 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ Environment=RUST_LOG=info | |
ExecStart=/usr/local/bin/ord \ | ||
--bitcoin-data-dir /var/lib/bitcoind \ | ||
--data-dir /var/lib/ord \ | ||
--max-index-size 1TiB \ | ||
--chain ${CHAIN} \ | ||
server \ | ||
--acme-contact mailto:[email protected] \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters