# Storage vs Database, the difference?

**URL:** <https://forum.heroiclabs.com/t/storage-vs-database-the-difference/805>\
**Category:** Local Setup\
**Tags:** getting-started\
**Created:** [June 15, 2020, 6:38am UTC](https://forum.heroiclabs.com/t/storage-vs-database-the-difference/805 "2020-06-15T06:38:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikola-Milovic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/nikola-milovic/32/282_2.png) [@Nikola-Milovic](https://forum.heroiclabs.com/u/Nikola-Milovic)\
**Post date:** [June 15, 2020, 6:38am UTC](https://forum.heroiclabs.com/t/storage-vs-database-the-difference/805/1 "2020-06-15T06:38:43Z")

</div>

Is there a difference between the Storage and the Database? I cannot seem to understand the difference between the Storage and the DB, from the docs `A user can write one or more objects which will be stored in the database server` , that means that the Storage is basically just stored in the DB in a different table? I am asking because I want to update the users really often while they’re playing the game (every time they buy something, every couple of minutes and such). How should I approach these frequent updates? I would usually fetch the user from storage and get them into the DB but it seems that’s already the case.

---

<div class="post-metadata">

**Author:** ![EarthAdam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/earthadam/32/259_2.png) [@EarthAdam](https://forum.heroiclabs.com/u/EarthAdam)\
**Post date:** [June 15, 2020, 12:24pm UTC](https://forum.heroiclabs.com/t/storage-vs-database-the-difference/805/2 "2020-06-15T12:24:30Z")

</div>

`Storage` is one table within the database, that is written to and read from using the [storage](https://heroiclabs.com/docs/storage-collections/) engine. The database itself contains a number of different tables though, as displayed in the image below.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/1X/dbf397c3e46af9b73218a4b72129934ff366c660.png)  
The storage engine is where you would want to manage data for your inventory or something like that, although it’s associated with a key for the user, so you need to use the `UserID` to fetch inventory items for that particular user in `Storage`
