Dataset vs WixDataQuery

When working with dataset it would be better regarding resource consumption and efficiency, for example filtering or searching in a collection using a created dataset or using WixDataQuery and then updating the dataset. My doubt comes because I’m under the impression that using WixDataQuery is a little faster; or WixDataQuery only serve to do things that are a little more complex?

Hi!

The two methods do basically the same.
The difference is in the page you built.
If you use a dataset in the page and you try to filter info from that dataset (that connects between a specific collection and components in your page) you should use a dataset filter.
Otherwise, if you just manipulating info in your page according to a certain values and filters you should use a WixDataQuery.

Best of luck!
Doron. :slight_smile: