You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@asterixdb.apache.org by Yingyi Bu <bu...@gmail.com> on 2016/04/19 01:57:22 UTC
why loading an enforced index needs to cast-record?
Why does loading an enforced secondary index need to cast records [1] [2]
[3]?
It doesn't seem to be efficient, since what really needs to be checked is
only the type of the indexed fields.
Any thoughts?
Best,
Yingyi
[1]
https://github.com/apache/incubator-asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/file/SecondaryBTreeOperationsHelper.java#L148
[2]
https://github.com/apache/incubator-asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/file/SecondaryInvertedIndexOperationsHelper.java#L253
[3]
https://github.com/apache/incubator-asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/file/SecondaryRTreeOperationsHelper.java#L310
Re: why loading an enforced index needs to cast-record?
Posted by Yingyi Bu <bu...@gmail.com>.
ASTERIXDB-1404 [1] has been created based on the conversation with @Ildar.
Best,
Yingyi
[1] https://issues.apache.org/jira/browse/ASTERIXDB-1404
On Mon, Apr 18, 2016 at 4:57 PM, Yingyi Bu <bu...@gmail.com> wrote:
> Why does loading an enforced secondary index need to cast records [1] [2]
> [3]?
> It doesn't seem to be efficient, since what really needs to be checked is
> only the type of the indexed fields.
> Any thoughts?
>
> Best,
> Yingyi
>
> [1]
> https://github.com/apache/incubator-asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/file/SecondaryBTreeOperationsHelper.java#L148
> [2]
> https://github.com/apache/incubator-asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/file/SecondaryInvertedIndexOperationsHelper.java#L253
> [3]
> https://github.com/apache/incubator-asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/file/SecondaryRTreeOperationsHelper.java#L310
>
>