umutbozkurt / django-rest-framework-mongoengine

Mongoengine support for Django Rest Framework
MIT License
616 stars 167 forks source link

Is it possible to enable cache? #291

Closed wdxwj closed 2 years ago

wdxwj commented 2 years ago

Since there are too much data in the mongodb, it costs lots of time when querying. Is it possible to enable cache?

IATF commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

BurkovBA commented 2 years ago

Do you mean something like caching.base.CachingMixin and caching.base.ContextManager and something like memached?

I've never tried doing so with MongoDB.

wdxwj commented 2 years ago

Yes. But, I solved my problem using Index. So, I don't need cache any more.