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 7742709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:20:40+00:00 2026-06-01T09:20:40+00:00

I have a site where I have documents that are around 1MB in size.

  • 0

I have a site where I have documents that are around 1MB in size. To avoid any kind of conceptual joins I have put all related data in a single document.

Now I often need to fetch only one or two attributes of a document. Each document has over 10 attributes many of which are pretty large. I can not go on writing views for every single combination of the attributes.

How should I do it ? The only way I see is creating views on the fly and then using those views. OR is there any better method ?

  • 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-01T09:20:42+00:00Added an answer on June 1, 2026 at 9:20 am

    http://wiki.apache.org/couchdb/Document_Update_Handlers

    While it seems strange to call a update feature, couch allows you to return information from the document without updating it. See the xml example.

    Here might be an example you could extend:

    Add jsonpath to your ddoc, ( https://github.com/s3u/JSONPath)

    function(doc, req) { 
        var jsonpath = require('jsonpath');
        var path = req.query.path;
        var target = jsonpath(doc, path);
        var json = JSON.stringify(target);
        var resp = { 'headers' : { 'Content-Type' : 'application/json' }, 'body' : json };
        return [doc, resp]; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My site serves up documents from tocmat that sometimes have & 's in the
I have an XML document that matches our site navigation something like this: <page
We have hundreds of document libraries, spread all throughout various site collections in a
For example I have site http://localhost/site In IIS I set that 404 error causes
So I have site list on certain pages that basically just have links to
I want to have site wide default settings for all jQuery validation uses on
I have this drupal website that revolves around a document database. By design you
I'm helping put together a site that's going to host content for different regions
I have a site that will be down for a few hours while a
I have a wordpress site that im list out files in a directory. 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.