Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] shrinking down uuid cols (for new deployments or columns)

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] shrinking down uuid cols (for new deployments or columns)


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Tom Barton <>
  • Cc: "" <>
  • Subject: RE: [grouper-dev] shrinking down uuid cols (for new deployments or columns)
  • Date: Fri, 25 Sep 2009 09:31:47 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

No (wouldn't put people through that :) ). for existing deployments, if you
run ddlUtils, for existing cols, it will be what it is (preseumably 128), and
for new cols, it will be 40. For a new schema, everything will be 40...

Chris

> -----Original Message-----
> From: Tom Barton
> [mailto:]
> Sent: Friday, September 25, 2009 9:30 AM
> To: Chris Hyzer
> Cc:
>
> Subject: Re: [grouper-dev] shrinking down uuid cols (for new
> deployments or columns)
>
> Does this imply that an upgrade from v1.4.2 to v1.5.0 must include an
> export and reimport step, at least for MySql sites?
>
> Tom
>
> Chris Hyzer wrote:
> > How does this sound to people?
> >
> > https://bugs.internet2.edu/jira/browse/GRP-321
> >
> > UUID length in the DB for grouper cols has been varchar 128.
> > Not sure why this was chosen originally since we use standard 32 char
> uuids (and sometimes with some dashes).
> >
> > Anyways, this is a problem for 2 reasons:
> >
> > 1. Mysql cant have a combined index size of 1024 (maybe less in some
> versions)
> > 2. If you are doing in-memory databases, sometimes it treats varchars
> as chars
> >
> > In the table where we have an index larger than 1024, if we make the
> uuid's smaller, it fixes the issue. Shilen, TomZ and I have been
> discussing making those cols smaller (they are all new cols for v1.5).
> However, I think we should make all uuid's smaller. The DDLutils
> currently will ignore existing columns which are a different size than
> they should be. So if we change the definitions so that they are all
> size 40 (32 + 4 dashes + a little lee-way), then if you have an
> existing schema it will leave it the way it is, and if you are making a
> new schema, then it will make it size 40. If you are importing from old
> to new, there shouldnt be any existing IDs larger than 40 so you will
> be all good.
> >
> > OK?
> >
> > Thanks!
> >
> > Regards,
> > Chris




Archive powered by MHonArc 2.6.16.

Top of Page