mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-26 13:35:16 +03: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
@ -507,6 +507,7 @@ module.exports = class EventRepository {
|
||||
...options,
|
||||
withRelated: ['member'],
|
||||
filter: 'custom:true',
|
||||
useBasicCount: true,
|
||||
mongoTransformer: chainTransformers(
|
||||
// First set the filter manually
|
||||
replaceCustomFilterTransformer(filter),
|
||||
|
Loading…
Reference in New Issue
Block a user