Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3ED54916B for ; Wed, 11 Apr 2012 18:17:21 +0000 (UTC) Received: (qmail 22171 invoked by uid 500); 11 Apr 2012 18:17:19 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22100 invoked by uid 500); 11 Apr 2012 18:17:19 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 22092 invoked by uid 99); 11 Apr 2012 18:17:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 18:17:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown ~alla (athena.apache.org: encountered unrecognized mechanism during SPF processing of domain of jdreux@justlexit.com) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 18:17:14 +0000 Received: by ghbz12 with SMTP id z12so805337ghb.11 for ; Wed, 11 Apr 2012 11:16:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=wuwGob9ArWapqG9bCs38FPzBAvqxJp7JBHuxH1qW5KQ=; b=h7atd7ZzbETMmy4d7br5yC37gIBen3r/Fc2oL6X2KlUD2wLcgXvVSpElRMpCiA1C0w M5XKRis4ndrKX3JWQpH6IcTzqF0IwozY3Av3uHEw8spN6e/qPP5G1SajyBhkJ/f6mmWi P/MRK6Tu0Gg6ShTsfZz2lmVzpMi51FmwmcISn+ZaaV7POAhqRsgPuZA8/gnVA8Gdg7vi pEdtWkSzgc6vFYwDJSa274fpRFAN9BtQkyQUBkkA1t0Yjsjo90zbjokRHQ/1E4CoHRdf cofC2XElOcu55IpK5AfPoUZ7EwbEtBSoNea9fhw7WCg/9smZ4n//EeLzbCx4efX8Twub CvGg== MIME-Version: 1.0 Received: by 10.50.222.131 with SMTP id qm3mr6572589igc.66.1334168213405; Wed, 11 Apr 2012 11:16:53 -0700 (PDT) Received: by 10.42.176.71 with HTTP; Wed, 11 Apr 2012 11:16:53 -0700 (PDT) X-Originating-IP: [96.22.178.28] In-Reply-To: <6D3D563A-E405-4516-A4D1-E7468D7418C1@utt.fr> References: <6D3D563A-E405-4516-A4D1-E7468D7418C1@utt.fr> Date: Wed, 11 Apr 2012 14:16:53 -0400 Message-ID: Subject: Re: View cache invalidation From: Julien Dreux To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=14dae934058d6e3fa704bd6b3ecf X-Gm-Message-State: ALoCoQl1qOPFcQIF+FbL4JL402l8v2HLqfSTp4fAb6Q7yB19uADII+FakZtPkfRrsEO7plJ98L9x X-Virus-Checked: Checked by ClamAV on apache.org --14dae934058d6e3fa704bd6b3ecf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you for your answers. We are using ektorp v1.2.2 but this is not relevant at this point since the problem can also be observed at the 'raw' couchdb level when we query the view using curl. * * *JULIEN DREUX* jdreux@justlexit.com 514 812-8084 www.justlexit.com On Wed, Apr 11, 2012 at 2:11 PM, Aur=E9lien B=E9nel = wrote: > Hi Julien, > > > We are using CouchDb over ektorp (Java) and we seem to constantly run > into > > the problem of views returning old results or invalid result. > > I have no experience with ektorp. But it is rather easy to build a java > library which invalidates the cache on _changes: > > > https://github.com/Hypertopic/Porphyry/blob/master/src/org/hypertopic/RES= TDatabase.java > > https://github.com/Hypertopic/Porphyry/blob/master/src/org/hypertopic/RES= TDatabaseTest.java > > > Regards, > > Aur=E9lien --14dae934058d6e3fa704bd6b3ecf--