boulder/sa
Jacob Hoffman-Andrews c0ffbac7a8
sa: truncate times in type converter (#7556)
We believe the MariaDB query planner generates inefficient query plans
when a time index is queried using high precision (nanosecond) times.
This uses the updated borp from[1] to automatically truncate
`time.Time` and `*time.Time` in query parameters.

[1]: https://github.com/letsencrypt/borp/pull/11

Part of #5437
2024-06-24 11:26:34 -07:00
..
db Deprecate LeaseCRLShards feature (#7009) 2023-08-07 15:17:00 -07:00
db-next SA: Implement schema and methods for (account, hostname) pausing (#7490) 2024-06-17 10:18:10 -04:00
db-users SA: Implement schema and methods for (account, hostname) pausing (#7490) 2024-06-17 10:18:10 -04:00
proto SA: Implement schema and methods for (account, hostname) pausing (#7490) 2024-06-17 10:18:10 -04:00
satest Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
testdata Support writing OCSP to Redis on revocation (#6012) 2022-04-01 13:59:56 -06:00
database.go SA: Implement schema and methods for (account, hostname) pausing (#7490) 2024-06-17 10:18:10 -04:00
database_test.go SA: Enforce microsecond granularity for long_query_time and max_statement_time (#7224) 2023-12-21 13:06:30 -05:00
ip_range_test.go Remove all stray copyright headers and appends the initial line to LICENSE.txt (#1853) 2016-05-31 12:32:04 -07:00
metrics.go sa: refactor db initialization (#6930) 2023-06-13 10:15:40 -07:00
migrations.sh test: Support multiple database schemas (#6344) 2022-09-07 14:59:08 -07:00
model.go SA: Last round of comments for PR #7490 (#7551) 2024-06-20 12:56:39 -04:00
model_test.go SA: store and return certificate profile name (#7352) 2024-03-20 13:08:31 -04:00
rate_limits.go Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
rate_limits_test.go Replace explicit int loops with range-over-int (#7434) 2024-04-22 10:34:51 -07:00
sa.go SA: Last round of comments for PR #7490 (#7551) 2024-06-20 12:56:39 -04:00
sa_test.go SA: Last round of comments for PR #7490 (#7551) 2024-06-20 12:56:39 -04:00
saro.go SA: Implement schema and methods for (account, hostname) pausing (#7490) 2024-06-17 10:18:10 -04:00
sysvars.go SA: Check MariaDB system variables at startup (#6791) 2023-04-18 11:02:33 -04:00
sysvars_test.go SA: Check MariaDB system variables at startup (#6791) 2023-04-18 11:02:33 -04:00
type-converter.go sa: truncate times in type converter (#7556) 2024-06-24 11:26:34 -07:00
type-converter_test.go sa: truncate times in type converter (#7556) 2024-06-24 11:26:34 -07:00