Skip to content

Issue with the FirstOrDefaultAsync method #11

@salamaabid

Description

@salamaabid
  1. The FirstOrDefaultAsync(Func<T, bool> predicate) method takes the predicate 'Func<T, bool> predicate' which is taking a lot of time to execute, instead of Func<T, bool> predicate if we change to 'Expression<Func<T, bool>> predicate' it is working much faster ( at least 10 times faster).Is it an issue or a behavior?

  2. The other issue with RemoveAsync is not working with the partitioned collection is because of even if 'RemoveAsync' method takes RequestOptions as a parameter which is not passed to GetDocumentByIdAsync(id).We might need a Get method which takes partition key as FeedOptions.

  3. The WhereAsync methods return an IQueryable which is fine for most cases, but there are some issues I have faced with sharing context when WhereAsync used in the fully async code.It is very useful if you could provide an option for WhereAsync which returns the result after enumeration, like a List or similar.

  4. update to the latest azure documentdb package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions