mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 17:27:11 +00:00
sync optimisations, DBQuery no longer loads eventPayload
- It is now up to the caller to do so - QueryScheduler now can optionally not bother to ensure that the events are fresh
This commit is contained in:
@ -37,9 +37,9 @@ void cmd_scan(const std::vector<std::string> &subArgs) {
|
||||
exitOnSigPipe();
|
||||
|
||||
while (1) {
|
||||
bool complete = query.process(txn, [&](const auto &sub, uint64_t levId, std::string_view eventPayload){
|
||||
bool complete = query.process(txn, [&](const auto &sub, uint64_t levId){
|
||||
if (count) numEvents++;
|
||||
else std::cout << getEventJson(txn, decomp, levId, eventPayload) << "\n";
|
||||
else std::cout << getEventJson(txn, decomp, levId) << "\n";
|
||||
}, pause ? pause : MAX_U64, metrics);
|
||||
|
||||
if (complete) break;
|
||||
|
Reference in New Issue
Block a user