Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0D9BB200C2F for ; Mon, 6 Mar 2017 22:25:29 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0C178160B76; Mon, 6 Mar 2017 21:25:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 563E8160B66 for ; Mon, 6 Mar 2017 22:25:28 +0100 (CET) Received: (qmail 98220 invoked by uid 500); 6 Mar 2017 21:25:27 -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 98209 invoked by uid 99); 6 Mar 2017 21:25:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 21:25:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D474918396C for ; Mon, 6 Mar 2017 21:25:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Kc6JIv9wF0go for ; Mon, 6 Mar 2017 21:25:25 +0000 (UTC) Received: from post.selbstdenker.com (mail.selbstdenker.com [81.27.166.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D06465F403 for ; Mon, 6 Mar 2017 21:25:24 +0000 (UTC) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.19.2 (ClamAV engine v0.99.2) Received: from [81.27.162.131] (account maik@selbstdenker.ag HELO [81.27.162.225]) by selbstdenker.ag (CommuniGate Pro SMTP 6.1.13) with ESMTPSA id 12361257 for user@cayenne.apache.org; Mon, 06 Mar 2017 22:25:18 +0100 From: "Musall, Maik" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Fetching lots of objects Message-Id: Date: Mon, 6 Mar 2017 22:25:15 +0100 To: user@cayenne.apache.org X-Mailer: Apple Mail (2.3259) archived-at: Mon, 06 Mar 2017 21:25:29 -0000 Hi all, I have a number of statistics functions which need to fetch large = amounts of objects. I need the actual DataObjects because that's where = the business logic is that I need for the computations. Let's say I need to fetch 300.000 objects. Let's also assume the = database sits on a fast SSD array and can serve multiple connections = easily. I'm assuming in this case the CPU time needed for DataObject = instantiation is the main performance constraint. Is that correct? If so, how can I speed this up? Could I partition my fetch, and fetch in = several threads in parallel into the same ObjectContext? Or is there an = easier way to make use of multiple CPU cores for this? Thanks Maik