Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
-
Server Triage
-
ALL
Description
Hello Sir/Madam,
I have around 6 million products in my database and I am using atlas search to refine my search result. Everything is working fine, only $count stage is working slow.
totalItems = Product.aggregate([
{
$search: {
autocomplete: {
query: searchQuery,
path: normal_path,
score: {
boost:
,
},
},
},
},
{
$project: {
_id: 0,
score:
,
},
},
{
$match:
,
},
},
,
,
]);