You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by Nishadi Kirielle <nd...@cse.mrt.ac.lk> on 2017/07/17 02:05:29 UTC

[Gora- Aerospkie] Weekly update

Hi All,

I am currently working on introducing the query model into gora-aerospike
module. I am facing a difficulty here as Aerospike query model [1] only
supports querying for value based searches using secondary indexes that are
created on top of the non-key values in columns. In order to filter via
queries, in Aerospike, it is mandatory to have the indexes and via their
java client, there seems no possibility to create indexes on top of the key
field.  I tried an option to access the key as another column where the
column name being "PK" which works fine with their terminal client (aql)
but not supported via java client.

One option would be to use the already implemented get functionality to
retrieve the data when retrieving data given only a single key. But the
problem appears or a key range, as it will be problematic as to how to do
that. I am currently working on solving this issue and your feedback would
be really helpful to come up with a solution.


This weeks report can be found in [2]

Thank you and regards
Nishadi

[1]. http://www.aerospike.com/docs/guide/query.html
[2].
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=73630119
-- 
Nishadi Kirielle

Undergraduate
University of Moratuwa - Sri Lanka

Mobile : +94 70 204 5934
Blog : nishadikirielle.wordpress.com

Re: [Gora- Aerospkie] Weekly update

Posted by Renato Marroquín Mogrovejo <re...@gmail.com>.
Cool Nishadi! Thanks and great work!

2017-07-20 22:35 GMT-07:00 Nishadi Kirielle <nd...@cse.mrt.ac.lk>:

> Hi Renato,
>
> Thanks a lot for looking into this issue. As per you suggested, yes since
> Aerospike does not directly support querying ranges without the secondary
> indexes, trying to do all the indexing via the query feature in the
> gora-aerospike module does not seem to be the right approach to do that. As
> per the moment, I have implemented basic query functionality for the cases
> where it queries for a single key (which can be executed via the GET
> functionality) and the querying to get all the entries in a specific table.
> [1] In addition I have implemented the delete functionality via the
> queries. [2]
>
> Yes I have completed the functionality of PUT/GET/DELETE operations as at
> the moment. Regarding the test suites, out of the 34 test cases from the
> test base, I could pass 23 test cases currently, ignoring 11 test cases.[3]
> I am currently trying to get through the test cases related to updates.
>
> Thanks you and regards
> Nishadi
>
> [1].
> https://github.com/nishadi/gora/commit/2d667edb08ac241e857c9922d05f13
> a00c91fdc3
> [2].
> https://github.com/nishadi/gora/commit/c485f5bed92b784a4dd915c6fe5d7b
> 95a9990618
> [3].
> https://github.com/nishadi/gora/blob/issue-502/gora-
> aerospike/src/test/java/org/apache/gora/aerospike/store/
> TestAerospikeStore.java
>
> On 21 July 2017 at 07:44, Renato Marroquín Mogrovejo <
> renatoj.marroquin@gmail.com> wrote:
>
> > Hi Nishadi,
> >
> > Thanks for sharing your GSoC status.
> > I think one safe assumption you can make is that if the user wants to use
> > the query feature of Aerospike then he should create it through Aerospike
> > tools. Gora basically provides access to multiple datastores, but it
> > doesn't offer support for executing arbitrary code in the datastores
> (like
> > code for creating indexes for example) ... at least for now. Maybe at
> some
> > point we could just execute something like an arbitraty SQL/CQL/...
> string
> > through Gora.
> > Aerospike doesn't support range keys either because it hashes the keys so
> > they can be distributed evenly across all nodes, and so, it actually
> needs
> > a secondary  index to do such operation.
> > So I guess you already have the basic PUT/GET/DELETE operations working
> > right? How about the test suites? Maybe you can also ignore the query
> tests
> >  at first but have the implementation so users can take advantage of it,
> > and then maybe add a maven step for running some Aerospike commands (but
> > this can be a later step IMHO).
> > Hope it helps!
> >
> >
> > Best,
> >
> > Renato M.
> >
> >
> > 2017-07-16 19:05 GMT-07:00 Nishadi Kirielle <nd...@cse.mrt.ac.lk>:
> >
> > > Hi All,
> > >
> > > I am currently working on introducing the query model into
> gora-aerospike
> > > module. I am facing a difficulty here as Aerospike query model [1] only
> > > supports querying for value based searches using secondary indexes that
> > are
> > > created on top of the non-key values in columns. In order to filter via
> > > queries, in Aerospike, it is mandatory to have the indexes and via
> their
> > > java client, there seems no possibility to create indexes on top of the
> > key
> > > field.  I tried an option to access the key as another column where the
> > > column name being "PK" which works fine with their terminal client
> (aql)
> > > but not supported via java client.
> > >
> > > One option would be to use the already implemented get functionality to
> > > retrieve the data when retrieving data given only a single key. But the
> > > problem appears or a key range, as it will be problematic as to how to
> do
> > > that. I am currently working on solving this issue and your feedback
> > would
> > > be really helpful to come up with a solution.
> > >
> > >
> > > This weeks report can be found in [2]
> > >
> > > Thank you and regards
> > > Nishadi
> > >
> > > [1]. http://www.aerospike.com/docs/guide/query.html
> > > [2].
> > > https://cwiki.apache.org/confluence/pages/viewpage.
> > action?pageId=73630119
> > > --
> > > Nishadi Kirielle
> > >
> > > Undergraduate
> > > University of Moratuwa - Sri Lanka
> > >
> > > Mobile : +94 70 204 5934
> > > Blog : nishadikirielle.wordpress.com
> > >
> >
>
>
>
> --
> Nishadi Kirielle
>
> Undergraduate
> University of Moratuwa - Sri Lanka
>
> Mobile : +94 70 204 5934
> Blog : nishadikirielle.wordpress.com
>

Re: [Gora- Aerospkie] Weekly update

Posted by Nishadi Kirielle <nd...@cse.mrt.ac.lk>.
Hi Renato,

Thanks a lot for looking into this issue. As per you suggested, yes since
Aerospike does not directly support querying ranges without the secondary
indexes, trying to do all the indexing via the query feature in the
gora-aerospike module does not seem to be the right approach to do that. As
per the moment, I have implemented basic query functionality for the cases
where it queries for a single key (which can be executed via the GET
functionality) and the querying to get all the entries in a specific table.
[1] In addition I have implemented the delete functionality via the
queries. [2]

Yes I have completed the functionality of PUT/GET/DELETE operations as at
the moment. Regarding the test suites, out of the 34 test cases from the
test base, I could pass 23 test cases currently, ignoring 11 test cases.[3]
I am currently trying to get through the test cases related to updates.

Thanks you and regards
Nishadi

[1].
https://github.com/nishadi/gora/commit/2d667edb08ac241e857c9922d05f13a00c91fdc3
[2].
https://github.com/nishadi/gora/commit/c485f5bed92b784a4dd915c6fe5d7b95a9990618
[3].
https://github.com/nishadi/gora/blob/issue-502/gora-aerospike/src/test/java/org/apache/gora/aerospike/store/TestAerospikeStore.java

On 21 July 2017 at 07:44, Renato Marroquín Mogrovejo <
renatoj.marroquin@gmail.com> wrote:

> Hi Nishadi,
>
> Thanks for sharing your GSoC status.
> I think one safe assumption you can make is that if the user wants to use
> the query feature of Aerospike then he should create it through Aerospike
> tools. Gora basically provides access to multiple datastores, but it
> doesn't offer support for executing arbitrary code in the datastores (like
> code for creating indexes for example) ... at least for now. Maybe at some
> point we could just execute something like an arbitraty SQL/CQL/... string
> through Gora.
> Aerospike doesn't support range keys either because it hashes the keys so
> they can be distributed evenly across all nodes, and so, it actually needs
> a secondary  index to do such operation.
> So I guess you already have the basic PUT/GET/DELETE operations working
> right? How about the test suites? Maybe you can also ignore the query tests
>  at first but have the implementation so users can take advantage of it,
> and then maybe add a maven step for running some Aerospike commands (but
> this can be a later step IMHO).
> Hope it helps!
>
>
> Best,
>
> Renato M.
>
>
> 2017-07-16 19:05 GMT-07:00 Nishadi Kirielle <nd...@cse.mrt.ac.lk>:
>
> > Hi All,
> >
> > I am currently working on introducing the query model into gora-aerospike
> > module. I am facing a difficulty here as Aerospike query model [1] only
> > supports querying for value based searches using secondary indexes that
> are
> > created on top of the non-key values in columns. In order to filter via
> > queries, in Aerospike, it is mandatory to have the indexes and via their
> > java client, there seems no possibility to create indexes on top of the
> key
> > field.  I tried an option to access the key as another column where the
> > column name being "PK" which works fine with their terminal client (aql)
> > but not supported via java client.
> >
> > One option would be to use the already implemented get functionality to
> > retrieve the data when retrieving data given only a single key. But the
> > problem appears or a key range, as it will be problematic as to how to do
> > that. I am currently working on solving this issue and your feedback
> would
> > be really helpful to come up with a solution.
> >
> >
> > This weeks report can be found in [2]
> >
> > Thank you and regards
> > Nishadi
> >
> > [1]. http://www.aerospike.com/docs/guide/query.html
> > [2].
> > https://cwiki.apache.org/confluence/pages/viewpage.
> action?pageId=73630119
> > --
> > Nishadi Kirielle
> >
> > Undergraduate
> > University of Moratuwa - Sri Lanka
> >
> > Mobile : +94 70 204 5934
> > Blog : nishadikirielle.wordpress.com
> >
>



-- 
Nishadi Kirielle

Undergraduate
University of Moratuwa - Sri Lanka

Mobile : +94 70 204 5934
Blog : nishadikirielle.wordpress.com

Re: [Gora- Aerospkie] Weekly update

Posted by Renato Marroquín Mogrovejo <re...@gmail.com>.
Hi Nishadi,

Thanks for sharing your GSoC status.
I think one safe assumption you can make is that if the user wants to use
the query feature of Aerospike then he should create it through Aerospike
tools. Gora basically provides access to multiple datastores, but it
doesn't offer support for executing arbitrary code in the datastores (like
code for creating indexes for example) ... at least for now. Maybe at some
point we could just execute something like an arbitraty SQL/CQL/... string
through Gora.
Aerospike doesn't support range keys either because it hashes the keys so
they can be distributed evenly across all nodes, and so, it actually needs
a secondary  index to do such operation.
So I guess you already have the basic PUT/GET/DELETE operations working
right? How about the test suites? Maybe you can also ignore the query tests
 at first but have the implementation so users can take advantage of it,
and then maybe add a maven step for running some Aerospike commands (but
this can be a later step IMHO).
Hope it helps!


Best,

Renato M.


2017-07-16 19:05 GMT-07:00 Nishadi Kirielle <nd...@cse.mrt.ac.lk>:

> Hi All,
>
> I am currently working on introducing the query model into gora-aerospike
> module. I am facing a difficulty here as Aerospike query model [1] only
> supports querying for value based searches using secondary indexes that are
> created on top of the non-key values in columns. In order to filter via
> queries, in Aerospike, it is mandatory to have the indexes and via their
> java client, there seems no possibility to create indexes on top of the key
> field.  I tried an option to access the key as another column where the
> column name being "PK" which works fine with their terminal client (aql)
> but not supported via java client.
>
> One option would be to use the already implemented get functionality to
> retrieve the data when retrieving data given only a single key. But the
> problem appears or a key range, as it will be problematic as to how to do
> that. I am currently working on solving this issue and your feedback would
> be really helpful to come up with a solution.
>
>
> This weeks report can be found in [2]
>
> Thank you and regards
> Nishadi
>
> [1]. http://www.aerospike.com/docs/guide/query.html
> [2].
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=73630119
> --
> Nishadi Kirielle
>
> Undergraduate
> University of Moratuwa - Sri Lanka
>
> Mobile : +94 70 204 5934
> Blog : nishadikirielle.wordpress.com
>