Hi guys! me again.
this is our environment:
OS: Ubuntu 20.04
Dicom Server: Orthanc 1.11
DB: PostgreSQL 13.3
Plugins: S3-storage , PostgreSQL 4.0, Dicom-web 1.8
we are doing a query of the studies of the last 30 days, we use osirix, and the response is too slow. We also tried to do the curl directly http://172.22.20.150:8042/dicom-web/studies?StudyDate=20220507-20220607
this is the result and the query took 44 seconds
I0609 12:33:39.741879 HttpServer.cpp:1244] (http) GET /dicom-web/studies
I0609 12:33:39.742593 OrthancPlugins.cpp:2368] (plugins) Delegating HTTP request to plugin for URI: /dicom-web/studies
I0609 12:33:39.744376 PluginsManager.cpp:161] (plugins) Arguments of QIDO-RS request: [StudyDate=20220507-20220607]
I0609 12:33:39.745078 PluginsManager.cpp:161] (plugins) Body of the call from QIDO-RS to /tools/find: {
“Expand” : true,
“Full” : true,
“Level” : “Study”,
“Limit” : 0,
“Query” :
{
“0008,0020” : “20220507-20220607”
},
“RequestedTags” :
[
“0008,0020”,
“0008,0030”,
“0008,0050”,
“0008,0056”,
“0008,0061”,
“0008,0090”,
“0008,0201”,
“0010,0010”,
“0010,0020”,
“0010,0030”,
“0010,0040”,
“0020,000d”,
“0020,0010”,
“0020,1206”,
“0020,1208”
],
“Since” : 0
}
I0609 12:33:39.745205 OrthancPlugins.cpp:3190] (plugins) Plugin making REST POST call on URI /tools/find (built-in API)
I0609 12:33:40.340088 ServerContext.cpp:1416] Number of candidate resources after fast DB filtering on main DICOM tags: 478
I0609 12:33:41.198694 ServerContext.cpp:1566] Number of matching resources: 478
we saw this:
“Latency For some queries to the database, Orthanc performs several small SQL requests. For instance, a request to a route like /studies/{id} can trigger 6 SQL queries. Given these round-trips between Orthanc and the DB server, it’s important for the network latency to be as small as possible. For instance, if your latency is 20ms, a single request to /studies/{id} might take 120ms. Typically, a latency of 1-4 ms is expected to have correct performances.”
Our database and Orthanc are on the same server.
Could it be that these 6 triggered queries are causing the delay?
I attach our Configuration.json
Is there anything we can do to improve the speed?
Thanks!
Regards.-
Configuration.json (16.5 KB)