diff OrthancServer/ServerToolbox.cpp @ 2129:0c09d1af22f3

"/tools/invalidate-tags" to invalidate the JSON summary of all the DICOM files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Nov 2016 17:44:10 +0100
parents 1cf093cbdad8
children e3fd5bc429a2
line wrap: on
line diff
--- a/OrthancServer/ServerToolbox.cpp	Mon Nov 07 15:13:16 2016 +0100
+++ b/OrthancServer/ServerToolbox.cpp	Mon Nov 07 17:44:10 2016 +0100
@@ -334,6 +334,13 @@
     {
       // WARNING: The database should be locked with a transaction!
 
+      // TODO: This function might consume much memory if level ==
+      // ResourceType_Instance. To improve this, first download the
+      // list of studies, then remove the instances for each single
+      // study (check out OrthancRestApi::InvalidateTags for an
+      // example). Take this improvement into consideration for the
+      // next upgrade of the database schema.
+
       const char* plural = NULL;
 
       switch (level)