Skip to content

v0.0.9

Choose a tag to compare

@iYasha iYasha released this 10 Nov 18:22
· 6 commits to main since this release

What's Changed

  • The distinct operation performance has been significantly improved by changing query from aggregation
db.collection_name.aggregate([{$match: {publicationDate: {$gte: ISODate("2024-09-25T00:00:00Z"), $lte: ISODate("2024-11-07T00:00:00Z")}}}, {$group: {_id: {publicationDate: "$publicationDate"}}}, {$project: {publicationDate: "$_id.publicationDate"}}])

To default distinct operation for simple queries

db.collection_name.distinct("publicationDate", {
    '$and': [
        { 'publicationDate': { '$gte': ISODate("2024-09-25T23:00:00.000Z") } },
        { 'publicationDate': { '$lte': ISODate("2024-11-07T23:00:00.000Z") } }
    ]
})

Full Changelog: v0.0.8...v0.0.9