0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
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
api-key_spec.js
integration_spec.js
invite_spec.js Refactored tests to destructure common lib import (#11838) 2020-05-25 09:49:38 +01:00
member_spec.js
permission_spec.js
post_spec.js Skipped separate count query in .findPage() for limit="all" requests 2020-08-27 01:09:07 +01:00
session_spec.js
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