# Coding - Database vs Dataset - which is faster

**URL:** <https://forum.wixstudio.com/t/coding-database-vs-dataset-which-is-faster/34844>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [November 28, 2019, 12:19pm UTC](https://forum.wixstudio.com/t/coding-database-vs-dataset-which-is-faster/34844 "2019-11-28T12:19:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam4893](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sam4893/32/7205_2.png) [@sam4893](https://forum.wixstudio.com/u/sam4893)\
**Post date:** [November 28, 2019, 12:19pm UTC](https://forum.wixstudio.com/t/coding-database-vs-dataset-which-is-faster/34844/1 "2019-11-28T12:19:52Z")

</div>

I have a single product page where I can show any of the 15 different products in any of 4 different languages (i.e. one product/language per page). It’s basically a dynamic page (which is multi-lingual) but it’s all done manually via code.

I am currently getting all the data directly from the databases (using wixdata.query, which I call a few times).

I wonder if it would be more efficient to place a dataset on the page and manipulate it via code instead ?

In other words , if you wanted to use code exclusively to retrieve data then which is better, getting it from the database directly or via a dataset ?
