-
- Downloads
Do not allow full search on nix_name field.
Searching for something like "%a%" can take up to ten minutes. Remove the usage of special characters "^" and "$" in queries. Instead, always add a "%" character at the end of the query. Also add an index on the nix_name field. Fixes: <https://issues.guix.gnu.org/43791>. * src/sql/upgrade-13.sql: New file. * Makefile.am (dist_sql_DATA): Add it. * src/schema.sql (Builds_nix_name): New index. * src/cuirass/database.scm (query->bind-arguments): Remove support for "^" and "$" special characters. Instead make sure that the query does not contain any "%" character and prefix the query by "%". (db-get-builds-by-search): Remove an useless query nesting level. * src/cuirass/templates.scm (search-form): Adapt the search help message accordingly.
Showing
- Makefile.am 2 additions, 1 deletionMakefile.am
- src/cuirass/database.scm 11 additions, 20 deletionssrc/cuirass/database.scm
- src/cuirass/templates.scm 1 addition, 3 deletionssrc/cuirass/templates.scm
- src/schema.sql 1 addition, 0 deletionssrc/schema.sql
- src/sql/upgrade-13.sql 5 additions, 0 deletionssrc/sql/upgrade-13.sql
src/sql/upgrade-13.sql
0 → 100644
Please register or sign in to comment