Code Monkey home page Code Monkey logo

Comments (5)

spring-projects-issues avatar spring-projects-issues commented on August 12, 2024

David Harrigan commented

Hi,

My 2C's:

Perhaps we should trust the developer to "do the right thing" (tm) :-). Instead of forcing the query to include the docs, let's rely on the developer to set the "willIncludeDocs" if they want docs, otherwise it's their fault if they don't set this attribute and no docs are returned.

I would imagine that with a bit of clear JavaDoc and the expectation that the Developer understands the basic query API, they will realise that if they want docs, they must set this value.

-=david=-

from spring-data-couchbase.

spring-projects-issues avatar spring-projects-issues commented on August 12, 2024

Michael Nitschinger commented

makes sense guys.. I originally had that in to aid my repository implementation, but since it's causing issues I'll make that better. looking forward to add it in M2

from spring-data-couchbase.

spring-projects-issues avatar spring-projects-issues commented on August 12, 2024

David Harrigan commented

#7 created.

Just a bit unsure about SimpleCouchbaseRepository, is it okay to setIncludeDocs(true) at line 122?

-=david=-

from spring-data-couchbase.

spring-projects-issues avatar spring-projects-issues commented on August 12, 2024

David Harrigan commented

Updated pull request based upon Michael's kind feedback.

#8

-=david=-

from spring-data-couchbase.

spring-projects-issues avatar spring-projects-issues commented on August 12, 2024

Michael Nitschinger commented

Note that after discussion and thought, this won't be fixed. Here's the reason (copied from the github conv):

@dharrigan I looked at this once more in the codebase and I know remember why I did it originally. Let's talk it through so we got an the same line..

in the findByView, I get a list of marshalled objects back, but when setIncludeDocs is not set to true always the method won't return useful data (because I have nothing to marshal from).

If you look down further, there is the queryView method which lets you access the query result directly (while still getting the exception mapping).

That's also why I force reduce to false because if you have a reduced view I can't get the object ids from the result

from spring-data-couchbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.