Adding advanced query restriction mechanism to prevent sets on indexed columns.