I agree with you that it needs to be longer than 20 characters, and my vote on changing it would be no also.

But, I did have an issue when I first started using OFBiz because the 255 length caused index keys to exceed the maximum length allowed by my database. I changed the length to 100 on my local copy to get around the problem. Since then, my database has been improved to allow longer index keys.

-Adrian

Andrew Zeneski wrote:
I don't know about this, what if I used my (or yours for that matter) email address as my userLoginId andrew.zene...@hotwaxmedia.com that is 31 right there. Its really tough to say how much space is needed for such a field. 100 might be enough, but it is the change worth it? My vote is no, but maybe you have a specific reason in mind for the suggestion?

Andrew

On Apr 22, 2009, at 12:19 AM, Ashish Vijaywargiya wrote:

Hello,

Yesterday I was reviewing few entities, then I realized that we are using "id-vlong" for the fields acting as foreign key & referring to the "userLoginId" of the UserLogin table. "id-vlong" = VARCHAR(255) is too much space for saving the userLoginId. At max I can think of userLoginId to be of length of 25 or 30.
For ex. few reference are :
createdByUserLogin field in MarketingCampaign entity.
dontCancelSetUserLogin in OrderItem entity.

If there is any specific reason for keeping it of this much length then please share your thoughts on this.
Thanks in Advance.

--
Ashish Vijaywargiya



Reply via email to