-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Performance] POST /api/subject #785
Comments
Changes from AC:
|
@1t5j0y Also suggest updating the swagger documentation. |
@mahalakshme already done.. anything missing? |
See code-review comment: c587590#r148343774 |
…ore than one address level with same title for a given addressLevelType in different lineages
Need to also handle the scenarion where there are more than one address level with same title for a given addressLevelType in different lineages. Due to which the locationRepository.findLocation(String title, String type) call would return more than 1 entry. |
|
kskks |
During PATCH "/api/subject?version=3" testing, for updating address, where subject type has the "Location type where this subject can be registered" is set to an intermediate "Address Level Type", then the server responds with error "Address corresponding to 'Address map' not found". |
KNOWN ISSUES - NOT TO BE FIXED IN THIS CARD
|
Validated following test-cases as well after latest fix (Across both versions)PATCH
DifferentAddressTypeHierarchiesIndividualPatch.txt PUT / POST
|
Need:
POST and PATCH /api/subject appear in the top 5 in Newrelic consistently
Analysis:
2 things causing slowness:
- doing lowest on titleLineage causing additional slowness
- querying on the view affects us from being able to add indices on titleLineage
AC:
What does it accept as of version 2:
What it should accept as of version 3:
Tech inputs:
Out of scope:
Analysis notes:
How integration services uses Avni APIs:
Old: ignore
- Suggestion: Moving the title_lineage from view to addressLevel table might help, but this will need updating of this column(whenever updating lineage in address_level table - or the lineage column can be removed based on usages) when parent of a location is updated via CSV or UI
Questions:
Can we do this? Say the titleLineage is A,B,C
Find id of C - if only one present then set individual to that id, else - mostly will end here itself
Then find id of B, if only one present then set individual to addresses with title C and parent_id of B, else - Lets make child and parent combination unique and just do this - but there are 34 entries which have them same and 7k entries have , followed by space in the title
Then find id of A, if only one present then id of B = title with B and ....
Inputs:
disallow , in location
just inputting address
2nd approach - A then B and then C
reaching to the users is no
changing the API endpoints better
can be done via APIs
change structure - array, map(better: with different location hierarchy)
what do callers ve - type info, etc.,
usercatchment csv
find by titleLineage
so patch also needs change
ashwini - bahmni
Inputs:
The text was updated successfully, but these errors were encountered: