Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2128:9329ba17a069 | 2129:0c09d1af22f3 |
---|---|
332 IStorageArea& storageArea, | 332 IStorageArea& storageArea, |
333 ResourceType level) | 333 ResourceType level) |
334 { | 334 { |
335 // WARNING: The database should be locked with a transaction! | 335 // WARNING: The database should be locked with a transaction! |
336 | 336 |
337 // TODO: This function might consume much memory if level == | |
338 // ResourceType_Instance. To improve this, first download the | |
339 // list of studies, then remove the instances for each single | |
340 // study (check out OrthancRestApi::InvalidateTags for an | |
341 // example). Take this improvement into consideration for the | |
342 // next upgrade of the database schema. | |
343 | |
337 const char* plural = NULL; | 344 const char* plural = NULL; |
338 | 345 |
339 switch (level) | 346 switch (level) |
340 { | 347 { |
341 case ResourceType_Patient: | 348 case ResourceType_Patient: |