[eluser]ghebert[/eluser]
Out bottleneck is not PHP, it's the execution of the query on the DB server.
Also, we often have pages where users of level A can edit everything, those of level B can see everything, level C can see some things and edit some other things, and level D can see some things. Also, sometimes the same data can be viewed/edited from many different sections in the site.
Is there an advantage of doing this with a framework, for example can we have a "central" point where the code to manage the updates would be?