Skip to content

Commit 04a9476

Browse files
authored
Merge pull request #769 from evoskuil/master
Remove top_txs hashmap tally because it's now arraymap, update buckets.
2 parents d01d37b + 8ab01b7 commit 04a9476

File tree

2 files changed

+4
-27
lines changed

2 files changed

+4
-27
lines changed

console/executor_scans.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -144,29 +144,6 @@ void executor::scan_buckets() const
144144

145145
// ------------------------------------------------------------------------
146146

147-
filled = zero;
148-
bucket = max_size_t;
149-
start = logger::now();
150-
while (!cancel_ && (++bucket < query_.txs_buckets()))
151-
{
152-
const auto top = query_.top_txs(bucket);
153-
if (!top.is_terminal())
154-
++filled;
155-
156-
if (is_zero(bucket % block_frequency))
157-
logger(format("txs" BN_READ_ROW) % bucket %
158-
duration_cast<seconds>(logger::now() - start).count());
159-
}
160-
161-
if (cancel_)
162-
logger(BN_OPERATION_CANCELED);
163-
164-
span = duration_cast<seconds>(logger::now() - start);
165-
logger(format("txs" BN_READ_ROW) % (to_double(filled) / bucket) %
166-
span.count());
167-
168-
// ------------------------------------------------------------------------
169-
170147
filled = zero;
171148
bucket = max_size_t;
172149
start = logger::now();

src/parser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ parser::parser(system::chain::selection context) NOEXCEPT
9898
configured.database.tx_size = 17'000'000'000;
9999
configured.database.tx_rate = 5;
100100

101-
configured.database.txs_buckets = 386'364;
101+
configured.database.txs_buckets = 850'001;
102102
configured.database.txs_size = 1'050'000'000;
103103
configured.database.txs_rate = 5;
104104

@@ -124,7 +124,7 @@ parser::parser(system::chain::selection context) NOEXCEPT
124124
configured.database.prevout_size = 5'250'000'000;
125125
configured.database.prevout_rate = 5;
126126

127-
configured.database.validated_bk_buckets = 504'546;
127+
configured.database.validated_bk_buckets = 850'001;
128128
configured.database.validated_bk_size = 3'700'000;
129129
configured.database.validated_bk_rate = 5;
130130

@@ -766,7 +766,7 @@ options_metadata parser::load_settings() THROWS
766766
(
767767
"database.txs_buckets",
768768
value<uint32_t>(&configured.database.txs_buckets),
769-
"The log2 number of buckets in the txs table head, defaults to '386364'."
769+
"The log2 number of buckets in the txs table head, defaults to '850001'."
770770
)
771771
(
772772
"database.txs_size",
@@ -858,7 +858,7 @@ options_metadata parser::load_settings() THROWS
858858
(
859859
"database.validated_bk_buckets",
860860
value<uint32_t>(&configured.database.validated_bk_buckets),
861-
"The log2 number of buckets in the validated_bk table head, defaults to '504546'."
861+
"The log2 number of buckets in the validated_bk table head, defaults to '850001'."
862862
)
863863
(
864864
"database.validated_bk_size",

0 commit comments

Comments
 (0)