Skip to content

Khu-opensource/nested-improvement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How?

1. project settings(for nested query)
2. spring-data-elasticsearch build → create jar file → apply to project
3. improvement nested query

Solution Plan

Problem

→ Applying nested queries for simple same paths has performance issues

image

  • In diagram flow of how nested works to understand where to apply custom query in the process
    image

  • Custom query example

      Criteria criteria = new Criteria("characterDocuments.name").is(name).nested(true);
      criteria = criteria.add(new Criteria("characterDocuments.name").is(side).nested(true);
  • Explane
    • default value is false
    • criteria objects set to true generate one query for the same path
    • In our existing code, we only apply nested at a higher level for queries that are processed by an and operation at a time, such as "Seoul + Gangnam-gu", without touching the cases where a user wants to apply a single path to multiple nested.

About

improvement of nested query by criteria object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages