Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 75722 invoked from network); 6 May 2007 21:16:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 May 2007 21:16:37 -0000 Received: (qmail 66407 invoked by uid 500); 6 May 2007 21:16:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66197 invoked by uid 500); 6 May 2007 21:16:43 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 66188 invoked by uid 99); 6 May 2007 21:16:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 May 2007 14:16:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 May 2007 14:16:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 95B93714064 for ; Sun, 6 May 2007 14:16:15 -0700 (PDT) Message-ID: <9473573.1178486175611.JavaMail.jira@brutus> Date: Sun, 6 May 2007 14:16:15 -0700 (PDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1887) improve performance of single user long transactions. In-Reply-To: <19036781.1159253630057.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/DERBY-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-1887: ---------------------------------- Component/s: Store > improve performance of single user long transactions. > ----------------------------------------------------- > > Key: DERBY-1887 > URL: https://issues.apache.org/jira/browse/DERBY-1887 > Project: Derby > Issue Type: Improvement > Components: Store > Affects Versions: 10.1.3.1 > Reporter: Mike Matrigali > > The default logging option for Derby is to write a log page using the user thread, and wait for it to hit disk before allowing the user thread to continue. For transactions that span multiple log pages these syncs are not necessary (only need to sync when the user commits). A common case for this is a single user in the system inserting blob/clob columns which in derby need to log the entire contents of the blob/clob. > Current Java provides a few options: > 1) we could dynamically switch to the async writes with a sync at the end. This would require closing and opening the log file to change the syncing mode. > 2) we could push the log writer io to a different thread than the user thread. > there may be others. > Note that this is mostly a single user problem, as when multiple users are involved other threads can continue operating while whatever user thread has been chosen waits for the sync. This includes adding more log data to the inmemory log buffer. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.