From users-return-2153-apmail-directory-users-archive=directory.apache.org@directory.apache.org Mon Feb 23 09:27:18 2009 Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 54745 invoked from network); 23 Feb 2009 09:27:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2009 09:27:18 -0000 Received: (qmail 36700 invoked by uid 500); 23 Feb 2009 09:27:18 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 36675 invoked by uid 500); 23 Feb 2009 09:27:18 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 36664 invoked by uid 99); 23 Feb 2009 09:27:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 01:27:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marekapawlowski@gmail.com designates 209.85.218.163 as permitted sender) Received: from [209.85.218.163] (HELO mail-bw0-f163.google.com) (209.85.218.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 09:27:10 +0000 Received: by bwz7 with SMTP id 7so4931948bwz.1 for ; Mon, 23 Feb 2009 01:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7NPURKWiNof17NAbXhvcU5Lzei1Qmb8yO13fzvL46Ew=; b=AD8W58CxC70NDQmQ4OtWMSIvpz8JLsymcnXRJDsG6eNSacVf7qx1eIH9gC4LbaVy03 WQX2O7T3oOIGkkyOH/R/7845pYDSqCcxwgpApgsHtNhDZJ+r62ZEXajzWFWMZEICEQfO KrVWsqq7u3nMbGRwmwInVOLv44YBI9jjBiwqg= 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:content-transfer-encoding; b=Z+kV5N4QQPbcSVpSKkZKWnMaSOOlIJDk+WhoSjP2L2aIZacaIR619KpV3rGF0HVRFc xSJ00khel60g2fObyGdzvVPIHti1T0VONQvXdwJguUGi+ifrwmkXNg5+P5S6OwgBYd6Y GI1VkANecX6sOKAC8DeZ4BU0B0meyTmQF2R38= MIME-Version: 1.0 Received: by 10.181.192.11 with SMTP id u11mr1457442bkp.50.1235381208577; Mon, 23 Feb 2009 01:26:48 -0800 (PST) In-Reply-To: References: <23eeb6170902200718q5d1f5232s3026e884b234ad0a@mail.gmail.com> Date: Mon, 23 Feb 2009 10:26:48 +0100 Message-ID: <23eeb6170902230126v4121e834i1ace68dbaf6513af@mail.gmail.com> Subject: Re: Automatic unique id generate? From: =?UTF-8?Q?Marek_Paw=C5=82owski?= To: users@directory.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hmm... "Solve" So do I. But its very dirty solution... Im worry about sync of replication data but time verify that. ;( 2009/2/20 Emmanuel Lecharny : > On Fri, Feb 20, 2009 at 4:18 PM, Marek Paw=C5=82owski > wrote: >> Hello, >> >> Is some easy way to automatic/maybe increment generate uid fields? > > No. > > The main issue is how to guarantee that this number will be unique > among N replicating servers? We have had the very same problem with > Pierre-Arnaud, and we "solved" it on the application level. The > solution is quite ugly though ... > > > > > -- > Regards, > Cordialement, > Emmanuel L=C3=A9charny > www.iktek.com > --=20 Regards, Pozdrawiam, Marek Paw=C5=82owski Tel. +48 695 992 994