From: IonutzC <rev...@ya...> - 2022-10-18 22:52:50
|
I think you are right on the logic behind this, but I still think it's more of an eXist specific issue. I took the result, duplicated it 5 or six 6 times and put the xml in a file, wrote a php script and asked it to retrieve the contents and show it in the browser. All of this on the same server. In the end, the receiving time for this file is under 1 seconds with php, so it still appears there is an issue somewhere that concerns eXist in particular. Cheers. On Saturday, October 15, 2022 at 05:59:21 PM GMT+2, Nick Sincaglia <nsi...@nu...> wrote: This is just a guess but 6MB of XML data might take a time for the browser to render. If you run the same script in "View Source" mode, it might not try to render the XML and might display the data within 2 to 3 seconds again. Nick On 10/15/22 2:10 AM, IonutzC via Exist-open wrote: Hello folks, I noticed a weird issue concerning .xql calls (via AJAX, but the same happens when I run them directly in the browser). I have a query and if I check it in eXide it takes about 3 to 4 seconds of waiting time and 2 to 3 seconds of receiving time. The overall result is 6MB, so not the smallest but also not the largest amount of data to transfer. Now, the weird thing is that whenever I call the same .xql via AJAX (or, like I mentioned above, if I simply load it in the browser), the waiting time grows considerably, like 5 or 6 seconds extra, making the whole request incredibly slow. I checked the profiling tool in monex and it still shows the low number I get in eXide rather than the realistic time it takes to get the data. So either the serialization process or the data transfer issue is creating a problem. In any case, as far as I can tell there is nothing wrong with my script but rather eXist as a whole appears to be causing and issue somewhere or I am doing something incorrectly and I am not aware of it. Did anyone run into anything similar or do you have any suggestion how one might go around tackling this? Cheers! _______________________________________________ Exist-open mailing list Exi...@li... https://lists.sourceforge.net/lists/listinfo/exist-open -- Nick Sincaglia President/Founder NueMeta, LLC Digital Media & Technology Phone: +1-630-303-7035 nsi...@nu... http://www.nuemeta.com Skype: nsincaglia _______________________________________________ Exist-open mailing list Exi...@li... https://lists.sourceforge.net/lists/listinfo/exist-open |