-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Triage
-
ALL
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:
,
},
},
,
,
]);