Skip to content

async materialization of IQueryable #19

@csantero

Description

@csantero

At the moment, if the media type formatter receives an IQueryable, it will do a foreach over them inside of SerializeMany, which will synchronously run the query. We should probably do a ToArrayAsync() to fix this. We could either do this inside WriteToStreamAsync(), or add another action filter that transforms an IQueryable into an array. I actually have a filter that does the latter inside my project which I could port over. The drawback is that it's Yet Another action filter the user has to add.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions