Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORDS performance for GET Handler | Source type - Media Resource

User_Z8YBQAug 30 2021

Hi,
I am generating a JSON as a Media Resource GET handler.
The GET handler use a function to get already created JSON from DB . It is written like below:
SELECT 'application/json',get_json_db FROM DUAL;
When i run this SQL in SQL Developer it takes 400 ms. However when the API endpoint is called by client or from POSTMAN it takes around 3.7 secs to receive the JSON.
What measures can be taken to improve the ORDS performance as the query is fine and as already JSON is generated so ORDS should not be doing any more JSON processing.? - please suggest.
Thanks,
A

Comments
Post Details
Added on Aug 30 2021
3 comments
383 views