Return-Path: X-Original-To: apmail-clerezza-dev-archive@www.apache.org Delivered-To: apmail-clerezza-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 2A83110850 for ; Mon, 6 May 2013 14:50:34 +0000 (UTC) Received: (qmail 37586 invoked by uid 500); 6 May 2013 14:50:34 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 37536 invoked by uid 500); 6 May 2013 14:50:33 -0000 Mailing-List: contact dev-help@clerezza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@clerezza.apache.org Delivered-To: mailing list dev@clerezza.apache.org Received: (qmail 37525 invoked by uid 99); 6 May 2013 14:50:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 14:50:33 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [194.109.24.26] (HELO smtp-vbr6.xs4all.nl) (194.109.24.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 14:50:26 +0000 Received: from [10.12.1.124] (static.kpn.net [31.160.153.11] (may be forged)) (authenticated bits=0) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id r46Enoru040627 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 6 May 2013 16:49:50 +0200 (CEST) (envelope-from minto@xup.nl) Message-ID: <5187C30C.9040907@xup.nl> Date: Mon, 06 May 2013 16:49:48 +0200 From: Minto van der Sluis Organization: Xup BV User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: dev@clerezza.apache.org Subject: Re: Some Questions regarding implementing fastlane References: <517A3228.2060101@multimach.com> <518139A1.9000701@xup.nl> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Thanks Reto, This clarifies the difference between fast-lane and slow-lane. Regards, Minto Op 5-5-2013 19:37, Reto Bachmann-Gm�r schreef: > Hi Minto > > Great work updating the modules! > > Now to the questions. > > > >>> - Forward query to fast- or slowlane using the Preparerser Hasan recently >>> implemented >> Questions: Where is this decision taken? How to decide whether to use >> QueryEngine of QueryableTcProvider ? Are these both fast-lane? >> > (Deferring the where question to when I write the code.) > The QueryEngine is the slow-lane it works on any set of TripleCollections. > QueryableTcProvider is the FastLane in that it might benefit from any > optimization the backend provides it can only be used if the query only > affects TripleCollections that are all provided by the same TcProvider (and > this implements QueryableTcProvider). > >> - Make TdbTcProvider implement QueryableTcProvider >> Question: Why is this needed if JenaSparqlEngine (implementation of >> previous bullet) already takes care of this? >> > The JenaSparqleEngine works on any TripleCollections which are passed to > Jena wrapped as Jena Graphs. JenaSparqlEngine can only access the data in > these graphs via the provided filter method. The assumption is that TDB can > handle (some) queries more efficiently by using its internal quad-store or > other optimization techniques it could provide. > >> Of coarse I could wire Tdb*Providers to use JenaSparqlEngine. But I >> don't see the point. >> > This shouldn't be wired to JenaSparqlEngine (only probably reuse response > wrapping code) but forward the query directly to Jena rather than wrapping > JenaGraphs as TripleCollections in the Tdb*Provider and wrapping these back > to Jena Graphs for querying in the JenaSparqlEngine. > > Hope this makes things clearer. > > Cheers, > Reto > -- ir. ing. Minto van der Sluis Software innovator / renovator Xup BV Mobiel: +31 (0) 626 014541