Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0021 Generic Finds DRAFT -> REVIEW #54

Closed
wants to merge 6 commits into from

Conversation

simonbasle
Copy link
Contributor

This PR hosts the early design discussions during the DRAFT phase of the RFC, ultimately bringing it up to REVIEW status when merged.

@ingenthr
Copy link
Contributor

@brett19 if you have cycles in the next day or so, it'd be good to consolidate this one a bit. Note there is also http://review.couchbase.org/#/c/67874/ which has Simon's latest thoughts.

- Current Status: DRAFT

# Summary
Performing simple selects without writing any N1QL.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably phrase this differently. It's not so much that avoiding N1QL is a goal but rather to keep the simple things simple. There are lots of situations where just the predicate is needed.

@ingenthr
Copy link
Contributor

ingenthr commented Sep 29, 2016

POJO mapping, not required. Might be optional.

Brett: thinking that having a DSL that allows you to express these queries simply might be possible.

@ingenthr
Copy link
Contributor

Scenario, an e-commerce application that has user profiles who may be sellers and buyers.

Scenarios:

  1. Look up a user’s document by exact match to their {userid | facebook ID | email address}, return the document. This will have to consider a type=user.
  2. Sub-scenario: Look up the document and unpack it into a user defined class.
  3. Look up a set of users who are currently logged in and return a collection
  4. Sub-scenario: look up a set of users who are logged in where a sub-object or sub-arrayindicates they’re specialists in selling cranes. Specialty: {sells: “cranes”}
  5. Find the items I have for sale whose sales expire this upcoming weekend.
  6. Find the sellers who are in the country FR or AT.
  7. Find all sellers from the “couchbase.com” domain.

@daschl
Copy link
Contributor

daschl commented Mar 15, 2017

@brett19 @ingenthr how did we end up on this? stalled and closable for now?

woops, hit the close button...

@daschl daschl closed this Mar 15, 2017
@daschl daschl reopened this Mar 15, 2017
@avsej avsej force-pushed the master branch 2 times, most recently from cc991a8 to 8b3b33d Compare June 23, 2017 17:12
@brett19 brett19 closed this Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants