Answer the question
In order to leave comments, you need to log in
Where is the best place to store header/footer data?
There is a Spring project. The project has a classic two-level menu (catalog).
On the example of Yandex.Market:
The project is focused on several cities. The menu is based on the selected city.
Ie in Saratov there may be no root category "Electronics". There will be no sub-categories "TVs" in Tver, etc.
There is a menu on every page of the project. It is logical that doing an sql query when it is rendered on each page of the site is not the best solution.
Where is the best place to store this kind of information after getting it from the database?
There were ideas to store this:
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