Performance: setFieldValue vs content manager->dataset

If I need to load some text into a database then I could:

  1. Code it myself in Corvid
    Texts.forEach(text => {
    const currTextId = text.id;
    let textValue = text.text;
    $w( “#dataset3” ).setFieldValue(currTextId, textValue);
    })

or 2) Go to content manager and choose dataset to connect it manually.

Performance-wise what is the fastest for the webpage to load smoothly?

Hi,
Generally there shouldn’t be a significant difference in the performance between writing code properly and using dataset, in this case, sounds like using dataset is the more straight forward solution.

Thanks!