MIGX icon indicating copy to clipboard operation
MIGX copied to clipboard

getImageList snippet: &tvname=`field` vs &value=`[[*field]]` speed difference

Open kinaz opened this issue 2 years ago • 0 comments

Hi,

looks like &value is much faster than &tvname Here is a test on a website in production (debugParser output):

[[*premium.launches:isnot=``:then= <div class="launches-hp homepage"> [[getImageList? &tpl=@FIELD:MIGX_formname &tvname=premium.launches]] </div>]] Queries: 380 Queries time, s: 0.1538515 Parse Time, s: 0.9864650

[[*premium.launches:isnot=``:then= <div class="launches-hp homepage"> [[getImageList? &tpl=@FIELD:MIGX_formname &value=[[*premium.launches]]]] </div>]] Queries: 9 Queries time, s: 0.0039093 Parse Time, s: 0.2049119

kinaz avatar May 13 '22 15:05 kinaz