Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 82339 invoked from network); 20 Feb 2009 17:51:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2009 17:51:29 -0000 Received: (qmail 68862 invoked by uid 500); 20 Feb 2009 17:51:29 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 68851 invoked by uid 99); 20 Feb 2009 17:51:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2009 09:51:28 -0800 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2009 17:51:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E48DD234C4A9 for ; Fri, 20 Feb 2009 09:51:01 -0800 (PST) Message-ID: <675912758.1235152261935.JavaMail.jira@brutus> Date: Fri, 20 Feb 2009 09:51:01 -0800 (PST) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-624) Query behaviour independent of transactional boundaries In-Reply-To: <1407215458.1234959064369.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675411#action_12675411 ] Craig Russell commented on JDO-624: ----------------------------------- This request seems to affect several areas of the specification, including optimistic vs. datastore transaction, transaction isolation level, and for JDBC implementations of JDO, the handling of the JDBC connection and statement holdability across commit. I think a bit more behavior needs to be specified than a note in 14.3. Could you please be more specific as to what the behavior should be? > Query behaviour independent of transactional boundaries > ------------------------------------------------------- > > Key: JDO-624 > URL: https://issues.apache.org/jira/browse/JDO-624 > Project: JDO > Issue Type: Bug > Affects Versions: JDO 2 maintenance release 2 > Reporter: Christiaan > > (see also http://www.nabble.com/NonTransactionalRead---Query-Fetchplan-to19875446.html) > I have a question about the behaviour of Queries after a commit when "NonTransactionalRead" is set to true. Should a Query behave like it did before the commit? More specifically, when defining a fetchsize in the FetchPlan I would like to see that the Query is still honouring this fetchsize after a commit is given.This behaviour is not explicitly described in the specification. > The scenario I am working with is as such: > I have set NonTransactionRead=true and Multithreaded=true. I have 1 pm, and 2 threads. Thread 1 performs reads (executing queries with large result set) and Thread 2 performs writes. Now when I am iterating over a large query in Thread 1 and Thread 2 is doing a commit, I don't want this to affect the iterating over the query in Thread 1. > My proposal would be that the behaviour of the query should be unchanged by a commit(). For me this currently a portability issue, since our application depend on the fact that the query behaves the same. May be the following note to 14.3 Architecture of Query would be sufficient: > "The behaviour of a query should not depend on transactional boundaries"? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.