S
S
Sergo Sergo2016-11-08 19:42:01
MongoDB
Sergo Sergo, 2016-11-08 19:42:01

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

2 answer(s)
L
lega, 2016-11-08
@lega

> Whether there are variants of what that optimization
Is, use indexes (correctly).
Make the optimal structure of documents.

P
Pavel Tuzov, 2016-11-08
@PavelTuzov

Cash, for example?
I recommend using memcached
https://laravel.com/docs/5.3/cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question