Discussion:
[mongodb-user] Aggregation Memory Usage, what I do wrong?
Vladislav Turchinevich
2018-11-29 11:25:05 UTC
Permalink
[image: after_request.png]

[image: before_request.png] <about:invalid#zClosurez>
Hi, everyone, I have a trouble with I think a cache. Before request, I have
~35kb memory usage, after a request ~594mb. Aggregation looks like this:

aggregate_exp = [
{
'$match': {
'{}'.format(pattern): {'$regex': value, '$options': 'i'}
}
},
{
'$limit': 200
},
{
'$project': {
'_id': False,
'value': '${}'.format(pattern)
}
},
{
'$group': {
'_id': '$value'
}
},
]

How I can free this memory? I can not create indexes because of the length
of the field unlimited
Thx all, I hope you help me
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/25400f25-83e8-4cec-975e-9deeee8c2bbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...