Answer the question
In order to leave comments, you need to log in
Help me choose a database
Good afternoon!
Need advice on choosing a storage system. Output data: a potentially unlimited array of numeric data, for example:
ID VALUE 1 10.01 2 11.13 3 9.78 4 10.00 5 9.99 6 12.45 ... ...
Answer the question
In order to leave comments, you need to log in
SELECT *
FROM myTable t1
JOIN myTable t2
ON t1.Id < t2.Id
AND t1.Value > t2.Value
WHERE t2.Id = 100
ORDER BY t1.Id DESC
LIMIT 1;
It looks like stock quotes :) It's
hard to advise blindly without knowing the type of your requests, but your structure is called "time series" (time series). There is a list of software for working with them, for example, here: ces.stat.ucla.edu/software/time-series-analysis . You, I think, will not only have to search for them, but also transform - scale, apply filters, remove noise, etc.
I think that it doesn’t matter ... competent ability to compose SQL queries drives ...
For such simple tables, you can also take a look at nosql solutions. Perhaps they will show themselves better under such data and conditions.
For such a formalized task, if you need maximum speeds, you can also make your own bicycle using the same C, for example, since the task is very simple.
For such tasks, it would be much more correct to store data in memory and dump them, say, on disk from time to time so as not to lose them. I don’t see any special applications for sql or nosql solutions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question