Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

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

Open kinaz opened 2 years ago

kinaz commented 2 years ago

Hi,

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

[[*premium.launches:isnot=`:then=

[[getImageList? &tpl=@FIELD:MIGX_formname &tvname=premium.launches ]]
`]] Queries: 380
Queries time, s: 0.1538515
Parse Time, s: 0.9864650

[[premium.launches:isnot=`:then=

[[getImageList? &tpl=@FIELD:MIGX_formname &value=`[[premium.launches]]]] </div>]] Queries: 9
Queries time, s: 0.0039093
Parse Time, s: 0.2049119