What are the advantages/disadvantages of using MySQL triggers to keep data synced between one table and another and even update aggregate/report tables as data changes?
By aggregate/report tables I mean tables that summarise data that exists in other tables such as:
tbl_user_location:
1 Mike New York
2 John London
3 Emily Paris
4 Jack New York
tbl_summary:
New York 2
London 1
Paris 1
As data changes real-time in tbl_user_location
the summary is updated.
What are alternatives to this approach?