N
N
nine_fly2018-07-17 21:53:57
Server optimization
nine_fly, 2018-07-17 21:53:57

What is the best way to store immutable data?

Somewhere I saw advice that in order to reduce the number of queries to the database, it is better to store immutable data (different lists, for example, countries) in XML or JSON.
Is it so? And what format is better to choose then?
Or can it store them in a database and cache them, for example, through Redis?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2018-07-17
@nine_fly

Cache. For this, both radish and memkesh are suitable. And it's better to immediately fall on hazelcast or apache ignite. Firstly, they are distributed, secondly, they work with a bunch of languages, thirdly, with proper dexterity, they can be pumped with data in advance, fourthly, any database, ORM or search engine can be hidden behind them. As a result, you will work only through the cache, which will dump or save data in batches at the right time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question