aboutsummaryrefslogtreecommitdiff
path: root/libbrep/build.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-07-12 20:37:45 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-07-22 22:57:23 +0300
commit599bd6335c27ff2c1a48cc0b3a5ee115d49afcda (patch)
tree073f7a6426fa681f097411aefc913a7f630a394d /libbrep/build.hxx
parentc28758a9327efc0f3bfc2f3c14d12b533750d94b (diff)
Speed-up builds page loading
Diffstat (limited to 'libbrep/build.hxx')
-rw-r--r--libbrep/build.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbrep/build.hxx b/libbrep/build.hxx
index ea51c00..a8139a8 100644
--- a/libbrep/build.hxx
+++ b/libbrep/build.hxx
@@ -26,7 +26,7 @@
//
#define LIBBREP_BUILD_SCHEMA_VERSION_BASE 7
-#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 8, closed)
+#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 9, closed)
// We have to keep these mappings at the global scope instead of inside
// the brep namespace because they need to be also effective in the
@@ -242,6 +242,10 @@ namespace brep
#pragma db member(toolchain_version) \
set(this.toolchain_version.init (this.id.toolchain_version, (?)))
+ // Speed-up queries with ordering the result by the timestamp.
+ //
+ #pragma db member(timestamp) index
+
#pragma db member(results) id_column("") value_column("") \
section(results_section)