1
votes

I have following questions regarding Azure DocumentDB

  • According to this article, multiple functions have been added to DocumentDB. Is there any way to get Date functions working? How can i get the queries of type greater than some date working?
  • Is there any way to select top N results like 'Select top 10 * from users'?
  • According to Document playground , Order By will be supported in future. Is ther any other way around for now?

The application that I am developing requires certain number of results to be displayed that have been inserted recently. I need these functionalities within a stored procedure. The documents that I am storing in DocumentDB have a DateTime property. I require the above mentioned functionalities for my application to work. I have searched at documentation and samples. Please help if you know of any workaround.

1

1 Answers

3
votes

Some thoughts/suggestions below:

Please note that stored procedures are best used when you have a write operation(s). You'll be able to better throughput on reads when you query directly.