G
G
Galdar Turin2020-08-01 15:31:43
Node.js
Galdar Turin, 2020-08-01 15:31:43

How to store temporary data?

Good afternoon, there was such question on data storage.
Here comes a large amount of data and you need to record only non-repeating data.

As an example: An
object arrives - { id: 1, emei: 34567, data: '0976' }

I will write this data to the database, but on condition that there was no melon for this id in the last day. And if there were, then you need to compare whether data has changed, and if it has changed, then write new data.

And so, I will not pull a DB every time to compare the data. Because such objects only for 5 seconds come 800 pieces + -.

I want to do something in the form of a database only in the script itself, which would store data for the last 24 hours, check it and, if necessary, write it to the database.

So. Can you tell me how this can be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question