EVENTS should reflect the relationship aspect of your tables. The WHERE clause is where you filter records. I prefer the first one.
Make it readable first, relationships between tables should be obvious (using JOIN), then profile
, , ,
- , ; , where . , Postgres MySQL EXPLAIN SELECT ..., SQL Server Ctrl + K, SQL Server ,