Sending to the database a series of data accumulated during the day, is it possible?

Asked

Viewed 26 times

0

I came to a question, to store data of events and browsing that the user performs on the site, would it be possible to only send to the bank after the end of the day, the actions that users have performed during the day, or save only when he close the tab of the site? Is it possible? And would it have any advantage of doing this instead of registering as the user was doing the action? My doubt in this is to generate a lot of weight on the server, making requests at all times and with several logged in users.

  • In theory if the data needs to be stored the best is to write immediately in the database because it guarantees integrity. The volume of "log" would be very large ?

  • It would register the link, ip and time, and id of the user if logged in. This with each change in the url. With some simultaneous users.

  • Why not add these values to a variable and every X time with the logged in user you send this data to the database?

  • So... I thought more or less about this logic, but I wanted to know if it would bring benefits to do this, and how it would be better to make this storage before passing to the bank.

  • The problem is the risk of losing in a fall , needing to log into thesis the best would be to record straight into the bank.

  • This way you will only be generating more problems yet. how will you ensure that the data will be saved?

  • Really, it’s something to think about...

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.