Skip to content
Discussion options

You must be logged in to vote

I guess it depends on what triggers "access" - is it logging in, reading data, altering data?

Yes, I'd use a command pattern to do the update. If the frequency of updating the last access time is high (like multiple times a second per user) then I'd consider using a queue to buffer those messages - possibly even writing some code in the queue listener to more efficiently update the database - blindly updating that field many times per second per user could be a problem!

You could use a rule as you suggest. If "last access" is based on a data portal operation, you might use a server-side authorization hook or interceptor hook (v6 or higher) in the data portal to update without complicating…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarkOverstreet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants