Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

Support for LINQ operators / Pagination #90

Closed spreddy2714 closed 5 years ago

spreddy2714 commented 5 years ago

Hi,

We have application that requires pagination, Searching through internet found the below reference. https://azure.microsoft.com/en-us/updates/documentdb-paging-with-top-and-new-linq-operators/

However, reading further revealed that LINQ is specific for .NET programming model. Can you please suggest if it is possible with java sdk(I searched all methods on client, but couldn't find any). Or What is the best solution for pagination on 3000+ records(with approximately 50 as page size)

christopheranderson commented 5 years ago

LINQ support is not something we can provide since it doesn't exist in Java. If there is some similar popular LINQ like library, we could discuss supporting it either directly or with another wrapper package (as we do with Spring). Open another issue if you have a suggestion for that.

For pagination, this is supported since 2.4.3 for non-Order By queries - just grab the continuation token off of the FeedResponse. We expect to support order by queries in the next 1-2 weeks.

christopheranderson commented 5 years ago

opened #92 to track the last bit of this. Closing.