Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8807281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:19:56+00:00 2026-06-14T02:19:56+00:00

In order to filter a user’s own documents from others’, I am returning the

  • 0

In order to filter a user’s own documents from others’, I am returning the creator of the document as the key, or part of the key:

org.couchdb.user:user1

or

[org.couchdb.user:user1, otherkey]

Is this the best way to create a “My Documents” page? Or can I simply return another key

otherkey

and use userCtx to filter it later on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:19:57+00:00Added an answer on June 14, 2026 at 2:19 am

    The answer depends on your architecture.

    If you have some sort of “middleware” between your clients and the database, you can limit your data fetch from the second view pattern you describe ([org.couchdb.user:user1, otherkey]) by querying ?startkey=["org.couchdb.user:user1"]&endkey=["org.couchdb.user:user1",{}]. This limits the results to those between the first possible emitted key and the last, because a shorter array sorts before longer and an object sorts after other value types.

    If you’re trying to do as much validation and data display in CouchDB as possible (e.g. you’re writing a “CouchApp”) then what you should consider using filtered replication. This can be used to give each user their own personal database, e.g. a subset of a non-public master database containing only docs they should see. Then you can just emit plain document keys and assume your results will only include relevant documents.

    There’s a bit more background on the uses of filtered replication halfway down this blog post, and you may find more discussion on specific questions here as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to make the groupby filter order in descending order? I have
My query is essentially the following: entries=Entry.all().order(-votes).order(-date).filter(votes >, VOTE_FILTER).fetch(PAGE_SIZE+1, page* PAGE_SIZE) I want to
I try developing two filter which order a list of groupforumtopics by the amount
I understand that Haskell's filter is a high order function (meaning a function that
I am trying to filter a fusion table using the WHERE clause in order
How can I order by descending my query set in django by date? Reserved.objects.all().filter(client=client_id).order_by('check_in')
I'm using search logic to filter and order my results but it removes records
I need to use SHORT_DATETIME_FORMAT in view. def manage_list(request): user = User.objects.filter().order_by('date_joined') usrs =
I am usins LINQ TO ENTITY in order to filter a list of persons
I've already defined a custom user account that utilizes several built in's from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.