aboutsummaryrefslogtreecommitdiff
path: root/mod/database.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-07-14 22:27:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-07-17 14:38:26 +0300
commit48f1c1feda91d9809406c83569443eedc9ea799e (patch)
treec56f4f2ed420d4e02be6e3ce84800cd3372bec4f /mod/database.cxx
parent5af5a6c6aa4c2b31e63d64a43ab647bd6def3808 (diff)
Optimize builds page by discouraging PostgreSQL from using the nested loop join strategy
Diffstat (limited to 'mod/database.cxx')
-rw-r--r--mod/database.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/database.cxx b/mod/database.cxx
index c88555a..02d521d 100644
--- a/mod/database.cxx
+++ b/mod/database.cxx
@@ -24,10 +24,10 @@ namespace brep
operator< (const db_key& x, const db_key& y)
{
int r;
- if ((r = x.user.compare (y.user)) != 0 ||
- (r = x.role.compare (y.role)) != 0 ||
+ if ((r = x.user.compare (y.user)) != 0 ||
+ (r = x.role.compare (y.role)) != 0 ||
(r = x.password.compare (y.password)) != 0 ||
- (r = x.name.compare (y.name)) != 0 ||
+ (r = x.name.compare (y.name)) != 0 ||
(r = x.host.compare (y.host)))
return r < 0;