Answer the question
In order to leave comments, you need to log in
How to optimize work with MongoDB?
There is a site with a medium-sized database (in active collections of 30,000 records), when the site reaches 300 people online, the site starts to load for a long time, 7-8 seconds each. The site is written in Laravel. Are there any options for some kind of optimization for the database itself and perhaps there are some tips for working with the database in laravel itself. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
> Whether there are variants of what that optimization
Is, use indexes (correctly).
Make the optimal structure of documents.
Cash, for example?
I recommend using memcached
https://laravel.com/docs/5.3/cache
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question