mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Optimising count query : Added option param to skip distinct from count query for members events API (#20700)
Ref: https://linear.app/tryghost/issue/ENG-1470/improve-the-performance-of-the-membersevents-aggregated-click-event
This commit is contained in:
parent
d2ef1cc8cb
commit
086ed9e7a9
1 changed files with 1 additions and 0 deletions
|
@ -507,6 +507,7 @@ module.exports = class EventRepository {
|
||||||
...options,
|
...options,
|
||||||
withRelated: ['member'],
|
withRelated: ['member'],
|
||||||
filter: 'custom:true',
|
filter: 'custom:true',
|
||||||
|
useBasicCount: true,
|
||||||
mongoTransformer: chainTransformers(
|
mongoTransformer: chainTransformers(
|
||||||
// First set the filter manually
|
// First set the filter manually
|
||||||
replaceCustomFilterTransformer(filter),
|
replaceCustomFilterTransformer(filter),
|
||||||
|
|
Loading…
Add table
Reference in a new issue