Welcome Guest, Not a member yet? Register   Sign In
Where to store often used datas?
#1

(This post was last modified: 12-26-2024, 01:05 AM by 4usol.)

Hello,

I would like to discuss how best to handle data that is used frequently in the project.

For example (think about lot datas of this kind for example in a forum)
- User IDs, usernames
- Roleids, role names,
etc.

Normaly on every single point i run a database-query to get this infos.

I would like to reduce the database call for this simple data, especially because it normally doesn't change or rarely changes.

I'm thinking about storing all of these values in the session, but I'm not sure if that will have a positive impact on server cache etc?

Another idea was to use local browser storage. At this point I'm worried for safety reasons. Maybe users can change the values and paste those into the code etc?

What is your opinion or suggestion about this?
Reply


Messages In This Thread
Where to store often used datas? - by 4usol - 12-26-2024, 01:01 AM
RE: Where to store often used datas? - by alex777 - 02-28-2025, 01:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB