Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1920

Provide options to not throw DocumentNotFoundExceptions on fetches

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • .backlog-sdk3
    • None
    • None
    • None
    • 1

    Description

      Most of the time when a document is requested it is expected to be there. In caching use cases (or similar) though this might not be the case. In that case it can be beneficial to not throw an exception (which is costly on the JVM) and just return a dummy get result instead.

      Proposed is an option called throwIfNotFound(boolean) which controls this setting.

      Attachments

        For Gerrit Dashboard: JCBC-1920
        # Subject Branch Project Status CR V

        Activity

          People

            daschl Michael Nitschinger
            daschl Michael Nitschinger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty