Skip to content

Query: Add unbounded result set warnings #5089

Description

@anpete

Could warn in logger
Could throw if we enumerate past a user configured threshold - It is almost never what you want to query 1k entities

Activity

  1. GSPP commented on Apr 17, 2016

    @GSPP

    This would be useful. It should not be a text log though. It should be programmatically detectable. The app decides how to handle/log that condition (possibly terminate the query?).

  2. added this to the Backlog milestone on Apr 18, 2016
  3. gdoron commented on Apr 19, 2016

    @gdoron

    I like the idea, I never used RavenDb in production so I can't say too much about it.
    But I know that one of its core features is exactly this "safe by default".
    Maybe even adding another warnings like too long queries, too many connections to the DB in one request.

    All these features exist in RavenDb.

  4. GSPP commented on Apr 19, 2016

    @GSPP

    @gdoron in case you are interested: the safe by default design in RavenDB often means truncating result sets silently or delivering incomplete data (you can search the web for that). Such things are not found during testing. EF should not do that... But warning in an opt-in way would be useful.

  5. anpete commented on Apr 19, 2016

    @anpete
    ContributorAuthor

    @GSPP Don't worry, we are NEVER going to do that!

  6. gdoron commented on Apr 19, 2016

    @gdoron

    @GSPP
    I know, It's a trade off. TANSTAAFL
    Though enumerate all the results and log a warning might be the better option in my humble opinion.

  7. ajcvickers commented on Nov 17, 2019

    @ajcvickers
    Contributor

    Closing old issue as this is no longer something we intend to implement.

  8. removed this from the Backlog milestone on Nov 17, 2019
  9. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions