Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 64758 invoked from network); 18 Oct 2010 19:35:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 19:35:19 -0000 Received: (qmail 67942 invoked by uid 500); 18 Oct 2010 19:35:19 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 67896 invoked by uid 500); 18 Oct 2010 19:35:19 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 67888 invoked by uid 99); 18 Oct 2010 19:35:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 19:35:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of borut.bolcina@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 19:35:12 +0000 Received: by bwz20 with SMTP id 20so984784bwz.16 for ; Mon, 18 Oct 2010 12:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Hkr55j+FPKTpUkQEgFKcHIjbS0GQa0xLm6TVsQIwAx0=; b=bby/xCWMedbw4tzi9RAdgL2DiSYOE0/hyl+dcHF3iSgoH3ZwPlU6gSt/cYTtbLHzaQ fMDFB4wslc3Y+aFboplxlGmyLC/CBIAUzycU839unDIJR4QwA3x5PkrHHFJ7EGjIcVIS anF20oPc4Fw3RoW8w4p6+s5wnV+nLf9mC++Xs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IwUuksm4aTVob6JatBF5FVLAK8s21bg7klMGBtkt30KwI4I6cDTD9GPp4MNGPtOV6I AwhYXko9Rmn6Hxp8GV5Z/la1C0bfdxx6v9WccJWNP5ScFDvL2gJB9ZO8pme2cX9QjBZt FzqJdd6f1lrH27p9afh5LVe8bfE09eS6yo3ew= MIME-Version: 1.0 Received: by 10.204.102.75 with SMTP id f11mr4918181bko.10.1287430492525; Mon, 18 Oct 2010 12:34:52 -0700 (PDT) Received: by 10.204.48.66 with HTTP; Mon, 18 Oct 2010 12:34:52 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 Oct 2010 21:34:52 +0200 Message-ID: Subject: Re: Writable FKs From: =?UTF-8?Q?Borut_Bol=C4=8Dina?= To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=001636c5a5222e15d20492e9456e X-Virus-Checked: Checked by ClamAV on apache.org --001636c5a5222e15d20492e9456e Content-Type: text/plain; charset=UTF-8 Hi, what makes insert faster when doing it every 100 objects? In each case the same number of inserts will be generated. Can, beside using templates, Cayenne be configured to do something like: INSERT INTO *tbl_name* (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9); That is one insert for 3 rows, which is more efficient (mysql). -Borut 2010/10/18 Michael Gentry > Hi Borut, > > In addition to what Andrus said about caching Towns, Streets, and > PostOffices, you should also try to do your commits in larger > groupings. One commit at a time will be slower than you want for > something like this. Try grouping 100 or so at a time before you > commit. > > mrg > --001636c5a5222e15d20492e9456e--