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-03-31 21:57:34 -05:00
2020-04-03 23:44:23 -05:00
2020-03-21 23:06:47 -05:00
2020-03-25 18:48:43 -05:00
2019-12-22 21:23:37 -06:00
2019-11-11 12:56:39 -06:00
2019-12-22 21:23:37 -06:00
2019-11-11 12:56:39 -06:00
2020-05-04 03:39:41 -05:00
2020-04-03 15:39:14 -05:00
2020-05-04 03:39:41 -05:00
2020-03-28 21:15:51 -05:00
2020-03-27 01:34:54 -05:00
2020-05-07 21:02:22 -05:00
2020-03-30 12:36:06 -05:00
2020-03-20 18:03:01 -05:00
2020-03-30 12:36:06 -05:00
2020-04-21 16:06:42 -05:00
2020-03-20 18:03:01 -05:00
2020-03-31 19:00:32 -05:00
2020-03-20 18:03:01 -05:00
2020-03-20 18:03:00 -05:00
2020-03-30 12:36:06 -05:00
2020-03-20 18:03:00 -05:00
2020-03-30 12:36:06 -05:00
2020-04-06 14:13:22 -05:00
2019-10-14 21:16:04 -05:00
2020-03-30 12:36:06 -05:00
2020-03-20 18:03:01 -05:00
2020-03-30 12:36:06 -05:00
2020-01-21 00:09:38 -06:00
2019-11-11 12:56:39 -06: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-03-30 12:36:06 -05:00
2020-03-21 19:28:10 -05:00
2020-03-21 21:07:35 -05:00
2020-03-21 21:07:35 -05:00
2020-03-31 19:00:32 -05:00
2020-03-20 18:03:01 -05:00
2020-04-03 23:44:02 -05:00
2020-01-24 23:51:37 -06:00
2020-03-31 19:00:32 -05:00
2020-03-20 18:03:01 -05:00
2020-03-21 23:06:42 -05:00
2020-03-20 18:03:01 -05:00
2020-05-07 13:53:35 -05:00
2020-03-21 23:06:42 -05:00
2019-10-15 00:19:43 -05:00
2020-03-30 12:36:06 -05:00
2020-03-20 18:03:01 -05:00
2020-04-07 14:59:46 -05:00
2020-03-30 12:36:06 -05:00
2020-03-30 12:36:06 -05:00
2020-03-30 12:36:06 -05:00
2020-03-30 12:36:06 -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-21 16:06:42 -05:00
2020-03-31 19:00:32 -05:00