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 0a3297d commit 279752cCopy full SHA for 279752c
src/web/sitemap.rs
@@ -59,21 +59,10 @@ pub fn sitemap_handler(req: &mut Request) -> IronResult<Response> {
59
INNER JOIN releases ON releases.crate_id = crates.id
60
WHERE
61
rustdoc_status = true AND
62
- (
63
- crates.name like $1 OR
64
- crates.name like $2
65
- )
+ crates.name ILIKE $1
66
GROUP BY crates.name
67
",
68
- &[
69
- // postgres can use the normal BTREE index on `name`
70
- // for LIKE queries, if they are anchored to the
71
- // beginning of the string.
72
- // This does not work for ILIKE and alphabetic
73
- // characters, hence the OR.
74
- &format!("{}%", letter),
75
- &format!("{}%", letter.to_uppercase()),
76
- ],
+ &[&format!("{}%", letter)],
77
)
78
.unwrap();
79
0 commit comments