DocumentDB SQL with ARRAY_CONTAINS

前端 未结 4 1738
眼角桃花
眼角桃花 2020-12-11 15:45

I\'m playing around on https://www.documentdb.com/sql/demo, which allows me to query against sample documents that look like:

{
  \"id\": \"19015\",
  \"desc         


        
4条回答
  •  长情又很酷
    2020-12-11 16:33

    Using a UDF, as Larry Maccherone mentioned, has the disadvantage that it does not use the collection's index. A UDF should only be used in (very) small collections or in combination with criteria that use the collection's index.

    A good solution for this problem is currently missing in DocumentDB. I would advice to vote on the following item: https://feedback.azure.com/forums/263030-documentdb/suggestions/14829654-support-sub-query-functions-like-exists-not-exist

提交回复
热议问题