❔ Is saving data from DB into private fields is a good idea?
Lets say i have this class:
And this method:
Would it be good to operate on that private field of entites instead of making additional DB calls?
Same for example :
Any ideas?
3 Replies
That would be private field on the service, not the entity ?
As long as it's within the same request scope, if you already have the information outside the db, then sure, use that
yeah
Just sounds odd thats the proper way idk
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.