0
Doing this with two or more separate Inserts in the same function is simple, but is there any more correct way that consumes the least amount of resources ? On the platform we are working on, all user actions will be recorded in other tables to later generate statistics.
I don’t know any native way of this, since this is not the responsibility of the bank, but the application manage the user logs. Mysql has alternatives to generate querys logs, which is sometimes unfeasible. The only way that comes to mind is the responsibility of the application. http://stackoverflow.com/questions/2488267/how-to-log-user-actions-with-php-and-mysql http://dba.stackexchange.com/questions/33654/mysql-logging-activity-specific-user-or-ip
– juniorb2ss
also I do not know a way to do without it being with several Inserts, you can analyze which is best option to record, can store in sessions and time to time record in the bank.
– Thiago Friedman
I can write to a file of . txt and with time update... I think it is the best option then...
– Diego Camilo de Bittencourt