You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently messed around with _find and indexes. I accidentally produced a query with an miss matching index.
The error returned by ScanDoc() is Iterator is closed
Err() gives me Unexpected key: warning
I popped the query into my GUI REST client and the warning looks like this:
{
"warning": "no matching index found, create an index to optimize query time",
"docs": [
{
...
I guess it would be good to expect possible warnings and let them surface anyhow. Maybe store them in a warning type - so you could retrieve it like Err().
Kind Regards
Fabian
The text was updated successfully, but these errors were encountered:
I recently messed around with _find and indexes. I accidentally produced a query with an miss matching index.
The error returned by ScanDoc() is
Iterator is closed
Err() gives me
Unexpected key: warning
I popped the query into my GUI REST client and the warning looks like this:
For now this is the only warning in mango queries:
http:https://docs.couchdb.org/en/2.0.0/api/database/find.html#creating-selector-expressions
https://github.com/apache/couchdb/blob/f4c6113808d1809469df9c8be9d2f83ef399f064/src/mango/src/mango_httpd.erl#L235
I guess it would be good to expect possible warnings and let them surface anyhow. Maybe store them in a warning type - so you could retrieve it like Err().
Kind Regards
Fabian
The text was updated successfully, but these errors were encountered: