Description
We currently dynamically add the global indexes on the table to the VIEW as well (so that the indexes are considered in addition to the view). However, we don't add the where clause and view constants so it's possible that when the index is used that rows are returned that aren't applicable for the view.