You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by arthi <Ar...@nielsen.com> on 2016/03/24 02:54:16 UTC
Group Indexes using query entities defined in XML config
Hello,
I am trying to define group indexes to speedify my SQL queries. Is there a
way I can configure them using XML, instead of Java API? I did not see that
in the docs.
Please help.
Thanks,
Arthi
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Group-Indexes-using-query-entities-defined-in-XML-config-tp3649.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Group Indexes using query entities defined in XML config
Posted by arthi <Ar...@nielsen.com>.
Thanks Val & Prachi, I could configure group indexes using XML.
Thanks,
Arthi
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Group-Indexes-using-query-entities-defined-in-XML-config-tp3649p3655.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Group Indexes using query entities defined in XML config
Posted by Prachi Garg <pg...@gridgain.com>.
Hi Arthi,
Here is the link to the documentation for configuring SQL indexes via XML -
https://apacheignite.readme.io/docs/sql-queries#configuring-sql-indexes-using-queryentity
-Prachi
On Wed, Mar 23, 2016 at 8:53 PM, vkulichenko <va...@gmail.com>
wrote:
> Arthi,
>
> You can provide the list of fields in QueryIndex bean:
>
> <bean class="org.apache.ignite.cache.QueryIndex">
> <constructor-arg index="0">
> <list>
> <value>field1</value>
> <value>field2</value>
> <value>field3</value>
> </list>
> </constructor-arg>
> <constructor-arg index="1" value="SORTED"/>
> </bean>
>
> I will update the docs, thanks for pointing this out!
>
> -Val
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Group-Indexes-using-query-entities-defined-in-XML-config-tp3649p3652.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
Re: Group Indexes using query entities defined in XML config
Posted by vkulichenko <va...@gmail.com>.
Arthi,
You can provide the list of fields in QueryIndex bean:
<bean class="org.apache.ignite.cache.QueryIndex">
<constructor-arg index="0">
<list>
<value>field1</value>
<value>field2</value>
<value>field3</value>
</list>
</constructor-arg>
<constructor-arg index="1" value="SORTED"/>
</bean>
I will update the docs, thanks for pointing this out!
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Group-Indexes-using-query-entities-defined-in-XML-config-tp3649p3652.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.