DDC-691: doctrine.readOnly query hint #5202

doctrinebot opened this Issue Jul 15, 2010 · 2 comments

1 participant


Jira issue originally created by user romanb:

Setting such a query hint to TRUE should result in all entities being retrieved by that query to be read-only for the purposes of change-tracking. Note that the entities themselves need not necessarily be read-only in general.

This feature is a flush performance tweak that can be used to query for objects but not let the returned objects run through change-tracking on flush. Any other managed objects are tracked as usual so you can do a read-only query for 100 entities and persist a new entity in the same unit of work with optimal flushing performance.


Comment created by koc:

Any news?
Why query hint? What about temporary switching like fetch mode changing via query object?


Comment created by acid24:

Any news on this?

I think this is a must have feature. Thanks for all your work.

@doctrinebot doctrinebot added this to the 2.x milestone Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment