Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B3A3710573 for ; Tue, 25 Jun 2013 23:34:20 +0000 (UTC) Received: (qmail 36881 invoked by uid 500); 25 Jun 2013 23:34:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 36835 invoked by uid 500); 25 Jun 2013 23:34:20 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 36819 invoked by uid 99); 25 Jun 2013 23:34:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jun 2013 23:34:20 +0000 Date: Tue, 25 Jun 2013 23:34:20 +0000 (UTC) From: "Alexander Shorin (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-714) Support document namespaces for more efficient view generation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13693495#comment-13693495 ] Alexander Shorin commented on COUCHDB-714: ------------------------------------------ Partially, this could be done by using COUCHDB-1373 feature. Each node has his own custom suffix and there is some view, that emits rows by their node uuid suffix. To easily split suffix from other _id part, it's possible to have it with leading marker character like `@my-local-couch-ns`. > Support document namespaces for more efficient view generation > --------------------------------------------------------------- > > Key: COUCHDB-714 > URL: https://issues.apache.org/jira/browse/COUCHDB-714 > Project: CouchDB > Issue Type: New Feature > Components: Database Core > Reporter: Ryan Hill > Labels: namespaces, view > > I would like to suggest a new, possibly optional, reserved attribute to specify a namespace for documents. Design documents with this attribute ('_ns' perhaps) would only consider documents with the same namespace during view generation. > Obviously, separating documents into several nodes is a workable alternative, but keeping docs in the same node, with namespaces, would preserve the ability to use the 'include_docs by _id' feature. > There may also be cause to include a _namespaces document for mapping namespace names to URIs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira