Answer the question
In order to leave comments, you need to log in
How to work with big data in MongoDB?
Hello.
Faced a problem when requesting data over 2000, the response starts to slow down. From 3 thousand records, everything dies without an answer. It's not even "big data", so I don't understand how to solve this problem. I am using Mongoose to make queries.
ps Perhaps not the correct database architecture.
Request:
const candles = await candlesModel.findOne({ symbol, interval }).then(res => res.data)
{
_id: 'ObjectID',
symbol: 'BTCUSD',
interval: '2h',
data: [ {open, high, low, close, timestamp}, ... ]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question