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 D4D42200C4D for ; Wed, 5 Apr 2017 21:41:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D362A160B94; Wed, 5 Apr 2017 19:41:46 +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 F343A160B76 for ; Wed, 5 Apr 2017 21:41:45 +0200 (CEST) Received: (qmail 27288 invoked by uid 500); 5 Apr 2017 19:41:44 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 27273 invoked by uid 99); 5 Apr 2017 19:41:44 -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; Wed, 05 Apr 2017 19:41:44 +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 25860C023E for ; Wed, 5 Apr 2017 19:41:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.495 X-Spam-Level: X-Spam-Status: No, score=-2.495 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.796, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-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 y11Lrk5QaxYd for ; Wed, 5 Apr 2017 19:41:41 +0000 (UTC) Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.163]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 7167F5F24E for ; Wed, 5 Apr 2017 19:41:41 +0000 (UTC) Received: from [192.168.1.2] (107.219.130.77.rev.sfr.net [77.130.219.107]) by msfrf2601.sfr.fr (SMTP Server) with ESMTP id 17DA91C00A029 for ; Wed, 5 Apr 2017 21:41:41 +0200 (CEST) Received: from [192.168.1.2] (107.219.130.77.rev.sfr.net [77.130.219.107]) (Authenticated sender: jacques.leroux60@sfr.fr) by msfrf2601.sfr.fr (SMTP Server) with ESMTPA for ; Wed, 5 Apr 2017 21:41:40 +0200 (CEST) Authentication-Results: sfr.fr; auth=pass (PLAIN) smtp.auth=jacques.leroux60@sfr.fr Subject: Re: Default key size To: user@ofbiz.apache.org References: From: Jacques Le Roux Organization: Les Arts Informatiques Message-ID: <86535507-a24e-5039-1c30-861890ffb6ed@les7arts.com> Date: Wed, 5 Apr 2017 21:42:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: X-sfr-mailing: LEGIT Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit archived-at: Wed, 05 Apr 2017 19:41:47 -0000 For history sake: I committed localpostnew. After a discussion (on dev ML or somewhere else? Unfortunately I can't find) it was commonly agreed that we should merge localpostnew in localpostgres and then remove localpostnew. Later we commonly decided http://markmail.org/message/op2yl3pcbj3lgxpg to revert some changes in the new (merged) localpostgres Feel free to use localpostnew. We could even put it back in, as suggested Nicolas, but I believe it should be then named otherwise to avoid confusion Jacques Le 05/04/2017 à 19:32, Mike a écrit : > Pierre, here is an example from the demo data: > > accounting_OrganizationData.xml: roleTypeId="INTERNAL_ORGANIZATIO"/> > > The default of ID (20 chrs) is so small that you can't even properly spell > "INTERNAL_ORGANIZATION"... I work with databases every day, and I would be > so limited if I had to work with such small primary IDs. > > The thing is you don't want to not limit yourself when you first build a > database. The jira is interesting, and GUIDs are a good example. > > Personally, I use postgresql, using the "localpostnew" type... Removed from > trunk for some reason.. It has unlimited primary ID sizes (ok, 2.1G), which > allows me to create any sort of primary key I want. > > > > > > If you think that type=TEXT is slow or less efficient.. Here is what > postgres says about type "TEXT".. > > https://www.postgresql.org/docs/9.3/static/datatype-character.html > > *Tip:* There is no performance difference among these three types, apart > from increased storage space when using the blank-padded type, and a few > extra CPU cycles to check the length when storing into a length-constrained > column. While character(n) has performance advantages in some other > database systems, there is no such advantage inPostgreSQL; in fact > character(n) is usually the slowest of the three because of its additional > storage costs. In most situations text or character varying should be used > instead. > > Mysql has a similar type... I personally haven't tested it. > > On Wed, Apr 5, 2017 at 10:06 AM, Pierre Smits > wrote: > >> HI Mike, all, >> >> Re 2: Talk about adjustment of default key size >> Why is that absurd? You believe it is too long/too short? >> Following JIRA issue may be of interest: >> https://issues.apache.org/jira/browse/OFBIZ-8343 >> >> Best regards, >> >> Pierre Smits >> >> ORRTIZ.COM >> OFBiz based solutions & services >> >> OFBiz Extensions Marketplace >> http://oem.ofbizci.net/oci-2/ >> >> On Wed, Apr 5, 2017 at 5:10 PM, Mike wrote: >> >>> Nice videos. Regarding the mysql setup, you may want to include two >> items: >>> 1) Make sure mysql is setup as UTF8, discussed earlier in this mail >> group. >>> Requires tweaking: >>> >>> framework/entity/config/entityengine.xml >>> /etc/mysql/my.cnf >>> >>> 2) Talk about adjusting the default sizes of primary keys (ID). The >>> default is an absurd 20 characters: >>> >>> framework/entity/fieldtype/fieldtypemysql.xml >>> >>> >>> >> java-type="String"/> >>> >> java-type="String"/> >>> >>> >>> >>> On Wed, Apr 5, 2017 at 6:03 AM, Pranay Pandey < >>> pranay.pandey@hotwaxsystems.com> wrote: >>> >>>> Thanks so much Deepak! >>>> >>>> Best regards, >>>> >>>> Pranay Pandey >>>> >>>> >>>> On Wed, Apr 5, 2017 at 5:51 PM, Deepak Dixit >> >>> com >>>>> wrote: >>>>> Hi Team, >>>>> >>>>> Here are some more videos from Pranay >>>>> >>>>> - Setup OFBiz in IntelliJ IDEA IDE - Release 16.11 and Trunk >>>>> >>>>> - Setup OFBiz with MySQL >>>>> >>>>> >>>>> Thanks Pranay for your effort. >>>>> >>>>> >>>>> Thanks & Regards >>>>> -- >>>>> Deepak Dixit >>>>> www.hotwaxsystems.com >>>>> >>>>> On Wed, Mar 22, 2017 at 7:07 PM, akash jain >>>>> wrote: >>>>> >>>>>> Nice videos, thanks Pranay! >>>>>> >>>>>> Thanks and Regards >>>>>> -- >>>>>> Akash Jain >>>>>> >>>>>> On Thu, Mar 9, 2017 at 6:18 PM, Deepak Dixit >>>> >>>>> com >>>>>>> wrote: >>>>>>> Hi Everyone, >>>>>>> >>>>>>> Pranay has created two video tutorials, these have been published >>> on >>>>> our >>>>>>> OFBiz YouTube channel : >>>>>>> 1 - Apache OFBiz Mailing Lists >>>>>> watch?v=bIS2kftvsq4> >>>>>>> 2 - OFBiz Beginners Tutorial - Basic Setup Release16.11 >>>>>>> >>>>>>> >>>>>>> Thanks Pranay for these helpful videos. >>>>>>> >>>>>>> Thanks & Regards >>>>>>> -- >>>>>>> Deepak Dixit >>>>>>> www.hotwaxsystems.com >>>>>>>