Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0E32196AA for ; Fri, 15 Apr 2016 18:45:00 +0000 (UTC) Received: (qmail 10981 invoked by uid 500); 15 Apr 2016 18:45:00 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 10930 invoked by uid 500); 15 Apr 2016 18:45:00 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 10920 invoked by uid 99); 15 Apr 2016 18:45:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2016 18:45:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E5B5BC0E0E for ; Fri, 15 Apr 2016 18:44:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.159 X-Spam-Level: ** X-Spam-Status: No, score=2.159 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1SFX1zEnfNcH for ; Fri, 15 Apr 2016 18:44:57 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 297925F571 for ; Fri, 15 Apr 2016 18:44:57 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id D45F22553CA2 for ; Fri, 15 Apr 2016 11:31:55 -0700 (PDT) Date: Fri, 15 Apr 2016 11:31:02 -0700 (PDT) From: tusharnakra To: user@ignite.apache.org Message-ID: <1460745062636-4234.post@n6.nabble.com> In-Reply-To: <1460742332834-4231.post@n6.nabble.com> References: <1460653663670-4180.post@n6.nabble.com> <1460656161513-4181.post@n6.nabble.com> <1460661737691-4198.post@n6.nabble.com> <1460665456423-4201.post@n6.nabble.com> <1460728262505-4228.post@n6.nabble.com> <1460742332834-4231.post@n6.nabble.com> Subject: Re: UPDATE sql query in ignite MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I think you did not understand my question. I want to add a new value to the cache, one that is not already present in the database table. Example: Right now the cache has the following: [key=PersonKey [id=2], val=Person [id=2, firstName=Marc, lastName=Robinson, orgid=300, salary=12000]] [key=PersonKey [id=1], val=Person [id=1, firstName=Roy, lastName=Daniel, orgid=200, salary=1000]] [key=PersonKey [id=3], val=Person [id=3, firstName=Jacob, lastName=Kimpson, orgid=300, salary=2000]] [key=PersonKey [id=4], val=Person [id=4, firstName=Caleb, lastName=Hass, orgid=100, salary=4000]] And I want to add something like: [key=PersonKey [id=5], val=Person [id=5, firstName=Christian, lastName=Chon, orgid=400, salary=2000]] How do I do that?? I know that any updates made to the cache will be written to the database with write through, that wasn't my question. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/UPDATE-sql-query-in-ignite-tp4180p4234.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.