Merge lp:~lifeless/launchpad/bug-618396 into lp:launchpad/db-devel

Proposed by Robert Collins
Status: Merged
Merged at revision: 9801
Proposed branch: lp:~lifeless/launchpad/bug-618396
Merge into: lp:launchpad/db-devel
Diff against target: 12 lines (+8/-0)
1 file modified
database/schema/patch-2208-08-2.sql (+8/-0)
To merge this branch: bzr merge lp:~lifeless/launchpad/bug-618396
Reviewer Review Type Date Requested Status
Stuart Bishop (community) db Approve
Launchpad code reviewers Pending
Review via email: mp+35970@code.launchpad.net

Commit message

Permit bug searches by importance to be ordered from index.

Description of the change

Permit bug searches by importance to be ordered from index.

To post a comment you must log in.
Revision history for this message
Stuart Bishop (stub) wrote :

This is fine. The patch is to be applied live, so please land this as patch-2208-8-2.sql

review: Approve (db)
Revision history for this message
Stuart Bishop (stub) wrote :

patch-2208-08-2.sql sorry.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2208-08-2.sql'
2--- database/schema/patch-2208-08-2.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2208-08-2.sql 2010-09-20 02:02:43 +0000
4@@ -0,0 +1,8 @@
5+SET client_min_messages=ERROR;
6+
7+-- Permit bug searches ordered by 'importance' - the default - to serve from
8+-- index rather than doing the full search and sorting.
9+
10+CREATE INDEX bugtask_importance_idx ON BugTask (importance, id desc nulls first);
11+
12+INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 8, 2);

Subscribers

People subscribed via source and target branches

to status/vote changes: