Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
Configure spatial index using Query Entities in Apache Ignite's NodeJS Thin Client

I am trying to configure a geospatial index for performant intersect querying on an Ignite Cache. I am able to set the field as queryable, and have set the index using the recommended syntax .setIndexes(new QueryIndex("columnName").

However, when I perform an "EXPLAIN SELECT" SqlFieldsQuery on the cache I am seeing .__SCAN instead of the indexed column. I believe this means it is scanning the entire cache instead of using the index, but could not find documentation on this.

'SELECT\n' +
    '    "__Z0"."EXAMPLESTRING" AS "__C0_0",\n' +
    '    "__Z0"."EXAMPLESPATIAL" AS "__C0_1"\n' +
    'FROM "mySpatialGeometryCache"."EXTENDEDPOINT" "__Z0"\n' +
    '    /* mySpatialGeometryCache.EXTENDEDPOINT.__SCAN_ */\n' +
    'WHERE INTERSECTS("__Z0"."EXAMPLESPATIAL", ?1)'

Here is the queryEntity I have configured:

new QueryEntity()
      .setValueTypeName("ExtendedPoint")
      .setFields([
        new QueryField("exampleString", "java.lang.String"),
        new QueryField("exampleSpatial", "java.lang.String"),
      ])
      .setIndexes(
        new Array(new QueryIndex("geo",QueryIndex.INDEX_TYPE.GEOSPATIAL))
      )
  );

I am not getting any errors or console warnings, and I am able to query the exampleSpatial field just fine, but I want to ensure that an index is being used so that it performs best when the cache is at a higher volume.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Follow this guide when creating indexes.

Look in the INDEXES system view to see that you've indexed the correct fields.

Use the EXPLAIN command to see which indexes the optimizer considers useful for a given query.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda