DS first from db,vs listview capped at 1?

0
perfomrance wise?   what is the difference? I feel like the DS is more work, and seems to perform worse.   but having a listview capped at 1 item and with css remove the loadmore button, also seems dirty.
asked
1 answers
0

Dear Jason,

 

Comparing dv and lv capped at 1 (assuming that we need to show one object), it's best to use dv as it gives option to pass exactly which object is required.

 

lv is best in performance but for the use case capping it at 1 doesn't make sure that 1 object passed is what is required, it can be any 1 object. And if changed to microflow or nanoflow as ds then it'll become non optimized lv as lv are optimized for db retrieves.

 

Hope my answer helps. Reach me out for any queries.

answered