I need to keep count how many times a particular profile has been viewed.
One way to do would be to add a field in the profile's raw in db table and every time profile loads add one ($profileCount +1) and once loaded update that db value with a db query.
Somehow this seems a bit inefficient to me. Is it how it's done normally?