maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #09437
Re: GSoC 2016:Unique indexes for blobs
Hello Jan,
Thanks for the kind response and for giving the details of
implementation. I am going to explore InnoDB data dictionary before the
official coding period starts.
Thanks,
Shubham
On 24 March 2016 at 01:47, Sergei Golubchik <serg@xxxxxxxxxxx> wrote:
> Hi, Jan!
>
> On Mar 23, Jan Lindström wrote:
> > Hi,
> >
> > All below is correct and naturally you may re-implement duplicate search
> on
> > different index type. I think there is more code that needs change as
> this
> > new index type would contain a column (hash value of the blob field) that
> > is not on stored on base table, right ? Indexed columns are also stored
> > inside a InnoDB data dictionary persistently, so that part would also
> need
> > change (dict/dict0*.cc files). Actually, you could store blob has also to
> > table, it could make things easier. Secondly, remember that unique keys
> can
> > be used inside a InnoDB as foreign keys, this is again a design question,
> > do you allow blobs to be foreign keys or not. Finally, unique key with
> NOT
> > NULL can be used as primary key i.e. clustered key on InnoDB, using blobs
> > hash on that might be out of reach on this timetable.
> >
> > R: Jan Lindström
> > Principal Engineer
> > InnoDB
>
> Agree, blobs (even UNIQUE NOT NULL) cannot be used as primary keys.
> For simplicity I would not support foreign keys either, this can be
> added later.
>
> Regards,
> Sergei
> Chief Architect MariaDB
> and security@xxxxxxxxxxx
>
Follow ups
References
-
Re: GSoC 2016:Unique indexes for blobs
From: Sergei Golubchik, 2016-03-16
-
Re: GSoC 2016:Unique indexes for blobs
From: Shubham Barai, 2016-03-19
-
Re: GSoC 2016:Unique indexes for blobs
From: Shubham Barai, 2016-03-20
-
Re: GSoC 2016:Unique indexes for blobs
From: Shubham Barai, 2016-03-20
-
Re: GSoC 2016:Unique indexes for blobs
From: Sergei Golubchik, 2016-03-20
-
Re: GSoC 2016:Unique indexes for blobs
From: Shubham Barai, 2016-03-21
-
Re: GSoC 2016:Unique indexes for blobs
From: Sergei Golubchik, 2016-03-21
-
Re: GSoC 2016:Unique indexes for blobs
From: Shubham Barai, 2016-03-22
-
Re: GSoC 2016:Unique indexes for blobs
From: Shubham Barai, 2016-03-23
-
Re: GSoC 2016:Unique indexes for blobs
From: Jan Lindström, 2016-03-23
-
Re: GSoC 2016:Unique indexes for blobs
From: Sergei Golubchik, 2016-03-23