**Is your feature request related to a problem?** Show IP2Geo datasource create/update progress percentage **What solution would you like?** When user call GET API of IP2Geo datasource, it shows how much percentage of the update are done **What alternatives have you considered?** Not showing create/update progress information **Do you have any additional context?**
Activity
alankar-asthana commentedon Sep 16, 2023
Hello @heemin32
From where to get started?
Thanks
heemin32 commentedon Sep 17, 2023
Hi @alankar-asthana,
The creation/update is happening in https://github.com/opensearch-project/geospatial/blob/main/src/main/java/org/opensearch/geospatial/ip2geo/jobscheduler/DatasourceUpdateService.java#L63
If we can get the size of file in advance, we can calculate how much of data is processed and store the completed percentage in memory.
In GET API, we can make a call to the node who is creating or updating datasource to get the percentage value and return it in response.