So my question is very simple. If I will perform the same query a lot of time per second/minutes (like User.find(test_user_id)) it will send request to database each time or it's just cache query result somehow?
In your example, User.find(test_user_id), User is the database table model you are querying and .find is your data retrieval method. From the sequelize site the finder method is defined as follows:
"Finder methods are designed to get data from the database."
If you call User.find(...) you will be querying your database for each query request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With