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 034CF200BB9 for ; Mon, 7 Nov 2016 20:52:24 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 01F4C160AE0; Mon, 7 Nov 2016 19:52:24 +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 4BABE160AEC for ; Mon, 7 Nov 2016 20:52:23 +0100 (CET) Received: (qmail 64513 invoked by uid 500); 7 Nov 2016 19:52:21 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 64503 invoked by uid 99); 7 Nov 2016 19:52:21 -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; Mon, 07 Nov 2016 19:52:21 +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 8CC7AC888F for ; Mon, 7 Nov 2016 19:52:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.129 X-Spam-Level: ** X-Spam-Status: No, score=2.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 0ozGrTdBawSV for ; Mon, 7 Nov 2016 19:52:18 +0000 (UTC) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 04CAD5F1EE for ; Mon, 7 Nov 2016 19:52:18 +0000 (UTC) Received: by mail-yw0-f173.google.com with SMTP id l124so152345582ywb.3 for ; Mon, 07 Nov 2016 11:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=UJJN9uyd5LO3OupKQkT6PooHehQCy7dYON+DytTnjHQ=; b=ospKaWwM0YR/b6EVNDD0IuO8Csx9RqSvvPGaSwIk5iCedqaTfldVJWzUjB4P85grdL Zgp5RT1ziPs3JcMHl5HPdi1a/Hp6CLiTyYz5XsWa9TCf0WpTnjeoC84O98boh/ZEQyWS QpEo+mK1/ScTL6QZn13GThn9zp+YsS8thAByNJK55MpvRZ1TfMSQ39KjxZeET2SEL/1h h9FikHko+fGzbq3l0VIALhKVUs/P72TNtVk2lQqSEdTZ0xx12uhhxdTk3Fx+gSCboYH4 6TN4ZLaP2wYzFRQyx3PautsJYuuO0XVYRSz+zLxCXvbEF6urnr0ryxFqh0f5opWYt3Dn wIvA== 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=UJJN9uyd5LO3OupKQkT6PooHehQCy7dYON+DytTnjHQ=; b=k2KF+OUlf0OTCVJTXgtRdFe3PmAFxmCo6MDJ11/AABqiV2lg34+ABpa+YkgVt4puY1 p0jyIOt0cxz6kHw4uuQdKlDm4U+aJEPw/Zpxh3JBYtU3mFMi8W+rHLP1GYNb0P9M/BSq jgC7T5DXqXsIwZxJDmolHnc2W28x51c6s1Iz5yhsOKR1pAc+o/D7/+Z28iLV+iNw4Qpm yc2XOWWv/JmDEKiv3RvnUZu+AuWBYYW/k9ZYnaj6IIxuE6WHWE62CXKPk50olH6zeiof t0oCnyjXe444dSo7w2U8mACZf7piRba3yvvcCm75SEopMTNImCaTpGEGHUAqChsP+suh dYeA== X-Gm-Message-State: ABUngvfJ+cJf2e2IMidDWTUkdjGok6i7+tL9EyB0O9y5ZzGihYYDmOY4ElSkQq9PrgcA+eCVNFNYz9asZtibyQ== X-Received: by 10.202.172.9 with SMTP id v9mr5113088oie.48.1478548336594; Mon, 07 Nov 2016 11:52:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.210.161 with HTTP; Mon, 7 Nov 2016 11:51:56 -0800 (PST) From: S Ahmed Date: Mon, 7 Nov 2016 14:51:56 -0500 Message-ID: Subject: store individual inventory items in a table, how to assign them correctly To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113a672862d5ed0540bb5ced archived-at: Mon, 07 Nov 2016 19:52:24 -0000 --001a113a672862d5ed0540bb5ced Content-Type: text/plain; charset=UTF-8 Say I have 100 products in inventory, instead of having a counter I want to create 100 rows per inventory item. When someone purchases a product, how can I correctly assign that customer a product from inventory without having any race conditions etc? Thanks. --001a113a672862d5ed0540bb5ced Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Say I have 100 products in inventory, instead of having a = counter I want to create 100 rows per inventory item.

Wh= en someone purchases a product, how can I correctly assign that customer a = product from inventory without having any race conditions etc?
Thanks.
--001a113a672862d5ed0540bb5ced--