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 E2ACF200B3C for ; Wed, 13 Jul 2016 15:04:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E1321160A60; Wed, 13 Jul 2016 13:04:38 +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 36FD0160A57 for ; Wed, 13 Jul 2016 15:04:38 +0200 (CEST) Received: (qmail 67296 invoked by uid 500); 13 Jul 2016 13:04:37 -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 67282 invoked by uid 99); 13 Jul 2016 13:04:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2016 13:04:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8EE71C0EFF for ; Wed, 13 Jul 2016 13:04:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.298 X-Spam-Level: * X-Spam-Status: No, score=1.298 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=telensa-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id W3yuvWLYl-Uk for ; Wed, 13 Jul 2016 13:04:34 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 40AD760D4E for ; Wed, 13 Jul 2016 13:04:34 +0000 (UTC) Received: by mail-io0-f178.google.com with SMTP id q83so45571543iod.1 for ; Wed, 13 Jul 2016 06:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telensa-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=f0Z1ZzEIBMbAUxEGNTww/vyw/K3xsuuCzxyHX8PCEKU=; b=GyffpLRJVVW/JAyFZyJ1xNoXFd2XB40lJyqlMy43dqw2xIqby7FuNSE7HSOm29eRhP YWNf2wF25GVagA/2Jg4TnLtuWuFQ5BjLkG/sU05VBJjZLyJO1kwgfE3lvlFCCYjun4x5 r1xF6WYsnst0qE9ug1Wnp/8uFF1QLNLq/hcT7zXk5W0Bs60DIlJrJ1IKvVUXMJuxNYWF q+qe1etwtpyB7WMIDuuogdOei2ye2ocUKK3L4xPvAqs76g95SCZ59NUXZlNK1CxFVmYM eccxGOUte3SThn4JtsBszE4+RV/c3dhD4347gGsZmShMsTHg96kprQhHHoDlF71m7eMb escg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=f0Z1ZzEIBMbAUxEGNTww/vyw/K3xsuuCzxyHX8PCEKU=; b=Gl/Jch0/3prME/t8/m4eVPZNUeaj23mJHY3tDu2tje0r2gLqveKUl+TK4lVZk7VPCI qczkCskTgu2ilOVUYRopykPltWDfcrbgQJjSUsKnSw/PZVMJ8iTXTAp6YSozKm8rBUnC Kmpj5sDU5GP4D0bYso4OdZ4f3EujwapUz+J2UPIak1Dh1okH5/BWBHxdZCbQ/MOMcHjs tz5aIOOpD0LdZrZKr4OSYkxldoLiSh1G8gUoUb2iAs1uSKkuuQYO/+fs2wowpdouDAaa Ig1hFzb22Da8Wz8rMMf1i69DS7ks515oHf7j3wmVIvZRxdsu2u+vgsxP13PJhmzOxpcs QySA== X-Gm-Message-State: ALyK8tJSPkacxIX/o03ZuIYm5DYPzwp9ID5a7lmqCwVMc/3qF8mL5GDHkADgk7fyL8qEDIkcrNEsfI88qoQ+K8j8 X-Received: by 10.107.3.65 with SMTP id 62mr9834448iod.140.1468415072894; Wed, 13 Jul 2016 06:04:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.25.15 with HTTP; Wed, 13 Jul 2016 06:04:32 -0700 (PDT) From: Harunobu Oyama Date: Wed, 13 Jul 2016 14:04:32 +0100 Message-ID: Subject: Inserting records without querying the relations To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=001a113fb55ccd9929053784062e archived-at: Wed, 13 Jul 2016 13:04:39 -0000 --001a113fb55ccd9929053784062e Content-Type: text/plain; charset=UTF-8 Hi, Does Cayenne provide a way to insert records without querying the records that the new record refers via its FKs? For example, in Artist-Painting-Gallery sample in the official getting started guide, is it possible to insert Painting records without querying Artist or Gallery when ARTIST_ID and GALLERY_ID are already known and we do are certain that they are valid? I do not care even if the object created gets unstable as long as inserting the record succeeds, as it is a part of process to just insert records. We will discard the object without referring any of its member once the insertion completes. As a part of performance testing, I am in the middle of populating 3 billions of records on a table with FKs. What is the fastest Cayenne way to populate records in such situation? thank you, nobu --001a113fb55ccd9929053784062e--