diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-12 10:36:06 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-12 10:36:06 +1000 |
| commit | df22bed0724b3a0d04c9fefd0f5bb130945a6b4e (patch) | |
| tree | 919ad6d6dcb611aa5cb1710efd9425655caf8960 /src/app_console | |
| parent | 67ab8bf5153f9391b8b728bc932ea8414e18c511 (diff) | |
| download | tangara-fw-df22bed0724b3a0d04c9fefd0f5bb130945a6b4e.tar.gz | |
Include title in indexes to avoid a per-record disk read
GOTTA GO FAST
Diffstat (limited to 'src/app_console')
| -rw-r--r-- | src/app_console/app_console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp index 2b5b84f7..a3f04bf9 100644 --- a/src/app_console/app_console.cpp +++ b/src/app_console/app_console.cpp @@ -259,7 +259,7 @@ int CmdDbIndex(int argc, char** argv) { for (database::IndexRecord r : res->values()) { std::cout << r.text().value_or("<unknown>"); if (r.track()) { - std::cout << "\t(id:" << r.track()->data().id() << ")"; + std::cout << "\t(id:" << *r.track() << ")"; } std::cout << std::endl; } |
