I want to check with some of the more experienced Oracle developers here about best practices for backend development.
I write many packages that print data in XML format and are used by HTTP services.
For this purpose, I scan cursors and print data using htp.p.
eg.
for i in c_my_cursor loop htp.p('<element>', i.data_field, '</element>'); end loop;
Now I heard that cursors are bad for performance (is that true?). In addition, there are similar cursors used in different packages, which, in my opinion, it is better to switch to functions from the point of view of service.
But what can I return from a function? I do not think the cursor will work. What are you using?
source share