evazion
41c6c882c2
search: refactor fast_count to return nil on timeout.
...
* Refactor fast_count to return nil instead of 1,000,000 if the exact count times out.
* Remove the estimate_post_counts and blank_tag_search_fast_count global config options.
* Replace the hardcoded post count estimates inside fast_count with a
method that parses Postgres's estimated row count from EXPLAIN.
* /counts/posts.json:
** Remove the `raise_on_timeout` parameter.
** Add an `estimate_count=<true|false>` parameter.
** Return null instead of 1,000,000 if the exact count times out.
2020-05-07 21:02:22 -05:00
..
2020-03-20 18:03:00 -05:00
2020-05-07 03:29:44 -05:00
2020-04-03 23:44:23 -05:00
2020-03-20 18:03:01 -05:00
2020-04-07 14:59:46 -05:00
2020-03-20 18:03:01 -05:00
2020-03-17 18:31:20 +00:00
2020-03-20 17:55:08 -05:00
2020-03-17 18:31:20 +00:00
2020-03-31 19:00:32 -05:00
2020-04-03 15:39:14 -05:00
2020-03-20 18:03:00 -05:00
2020-03-28 21:15:51 -05:00
2020-05-07 03:29:44 -05:00
2020-05-07 21:02:22 -05:00
2020-03-20 18:03:00 -05:00
2020-03-20 18:03:01 -05:00
2020-02-16 04:35:37 -06:00
2019-12-28 13:28:45 -06:00
2020-03-25 18:48:43 -05:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2020-03-24 00:38:07 -05:00
2020-03-20 18:03:01 -05:00
2020-03-24 00:38:07 -05:00
2020-03-24 00:38:07 -05:00
2020-04-06 14:13:22 -05:00
2019-10-23 10:46:36 -05:00
2020-02-16 04:00:42 -06:00
2020-02-19 17:08:59 -06:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:00 -05:00
2020-03-20 18:03:00 -05:00
2017-06-15 22:58:13 -05:00
2020-03-17 18:31:20 +00:00
2020-03-20 18:03:01 -05:00
2020-03-31 21:57:34 -05:00
2020-03-25 18:48:43 -05:00
2020-02-24 22:43:03 -06:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2020-03-17 18:31:20 +00:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2016-10-17 05:57:05 -05:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:01 -05:00
2020-03-28 06:29:41 +00:00
2020-03-20 18:03:01 -05:00
2020-05-07 03:29:44 -05:00
2019-12-02 02:26:21 -06:00
2020-03-06 08:10:26 +00:00
2020-01-31 02:43:07 -06:00
2020-03-20 18:03:01 -05:00
2020-03-25 18:48:43 -05:00
2018-09-08 15:42:16 -05:00
2020-01-12 23:01:37 -06:00
2020-03-20 18:03:00 -05:00
2020-03-20 18:03:00 -05:00
2020-03-20 18:03:00 -05:00
2020-04-06 14:13:22 -05:00
2020-03-20 18:03:00 -05:00
2020-03-20 18:03:00 -05:00
2020-03-20 18:03:00 -05:00
2020-04-07 14:59:46 -05:00
2020-03-17 18:31:20 +00:00
2020-03-31 18:13:41 -05:00