Ghost/test/unit/models
Kevin Ansfield 5e64f113d5 Skipped separate count query in .findPage() for limit="all" requests
no issue

- for large result sets or complex queries the count query itself can be quite time consuming
- when `limit: 'all'` is passed as an option there's no need to perform a separate count query because we can determine the pagination data from the final result set
- skipped count query when `limit: 'all'` option is present
- re-ordered comments to be closer to the code they reference (ie, why we have our own count query instead of Bookshelf's `.count()`
2020-08-27 01:09:07 +01:00
..
base Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
plugins Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
api-key_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
integration_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
invite_spec.js Refactored tests to destructure common lib import (#11838) 2020-05-25 09:49:38 +01:00
member_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
permission_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
post_spec.js Skipped separate count query in .findPage() for limit="all" requests 2020-08-27 01:09:07 +01:00
session_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
settings_spec.js Fixed settings unit tests 2020-07-22 22:12:00 +01:00
tag_spec.js Skipped separate count query in .findPage() for limit="all" requests 2020-08-27 01:09:07 +01:00
user_spec.js Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00