google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Objectify querying silently returns nothing on missing index #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define entity with at least one unindexed column.
2. Query using filter on unindexed column.
3. No results

What is the expected output? What do you see instead?
It would be helpful if Objectify would have thrown an exception here, or at 
least logged a warning. It has all the information it needs (entity definition 
and filter column name) to know that this cannot work. Instead, I wondered why 
I did not get my results, and spent considerable time reading documentation 
until I finally found the information that the app engine datastore will not 
filter on unindexed columns.
I know, just do it right, and there will be no problem. But a warning or an 
exception would have been more noob-friendly ;-)

What version of the product are you using? On what operating system?
I am using Objectify 4.0b1 on Windows7 64bit. Not that this is relevant here...

Please provide any additional information below.

Original issue reported on code.google.com by jandoerr...@gmail.com on 5 Mar 2013 at 12:42

GoogleCodeExporter commented 9 years ago
This is not a situation that can be absolutely prevented because it's legal to 
query on things that are not part of the current schema - for example, you may 
have changed the schema but there is still legacy data indexed that you need to 
query on (say, to remove it).

However, this could log a warning.

Original comment by lhori...@gmail.com on 29 Mar 2013 at 7:51

GoogleCodeExporter commented 9 years ago

Original comment by lhori...@gmail.com on 14 Apr 2014 at 12:51