mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-16 16:28:50 +00:00
efficiency: not necessary to look up Event table in export
This commit is contained in:
@ -41,9 +41,9 @@ void cmd_export(const std::vector<std::string> &subArgs) {
|
||||
if (lmdb::from_sv<uint64_t>(k) > until) return false;
|
||||
}
|
||||
|
||||
auto view = lookupEventByLevId(txn, lmdb::from_sv<uint64_t>(v));
|
||||
auto levId = lmdb::from_sv<uint64_t>(v);
|
||||
|
||||
std::cout << getEventJson(txn, decomp, view.primaryKeyId) << "\n";
|
||||
std::cout << getEventJson(txn, decomp, levId) << "\n";
|
||||
|
||||
return true;
|
||||
}, reverse);
|
||||
|
Reference in New Issue
Block a user