We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e740a4 commit 9de7b9dCopy full SHA for 9de7b9d
src/web/sitemap.rs
@@ -58,8 +58,11 @@ pub fn sitemap_handler(req: &mut Request) -> IronResult<Response> {
58
GROUP BY crates.name
59
",
60
&[
61
- // this LIKE pattern has the '%' only at the end,
62
- // so postgres can use the index on `name`
+ // postgres can use the normal BTREE index on `name`
+ // for LIKE queries, if they are anchored to the
63
+ // beginning of the string.
64
+ // This does not work for ILIKE and alphabetic
65
+ // characters, hence the OR.
66
&format!("{}%", letter),
67
&format!("{}%", letter.to_uppercase()),
68
],
0 commit comments