Here is my current elsticsearch dataset layout. We are using parent child type mapping for our data.
We have around 100 million parents and 3 billion childs for this parents.
My Index mapping:
{
geneticsdb_v4: {
mappings: {
variant: {
properties: {}
},
allelefreq: {
_parent:{type:variant},
properties:{}
},
}
}
}
I loaded my all documents to above index with above mentioned mapping.
Now I am trying to retrieve data using has_child queries but they became very slow.
I am trying improve my index performance using fielddata.
"fielddata": {
"loading": "eager_global_ordinals"
I update my index mapping for fielddata on _parent. After I ran this here is my current mapping:
{
My_index: {
mappings: {
variant: {
properties: {}
},
allelefreq: {
_parent: {
type: "variant",
fielddata: {
loading: "eager_global_ordinals"
}
},
properties: {}
},
}
}
}
Still my queries running slow even after updating my mapping.
Do I need to reindex whole data ?