Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ben Ellis 5 posts 35 karma points
    Apr 09, 2015 @ 17:40
    Ben Ellis
    0

    Database Table Vs Content

    Hello Umbraco Veterans,

           I've only been using Umbraco for a week but feel I'm getting a good grasp of the architecture and how to use it. One recurring topic that comes up is whether we should be storing data in SQL Tables or using Content to store and manage data. Do you have any recommendations on when each should/shouldn't be used?

           My understanding is that Content is best for user-provided / user-managed data, while SQL tables may be better for member-provided / member-managed / system generated data? Also, content has a hierachy which may or may not be suited to certain data structures but may be better suited that a table structure.

           Any thoughts, recommendations or experience on this would be appreciated.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 09, 2015 @ 17:50
    Jan Skovgaard
    100

    Hi Ben and welcome to our :)

    What kind of content do you have in mind? If for instance you have a small product-database that you would want to make easy to administer through the Umbraco backoffice I would probably go with a custom section where the data can be fetched from another table in the database or from within another database for instance.

    Tim Geyssens has an example of this here http://www.nibble.be/?p=440

    So I guess you can say that if something is suitable editing as web-content, then it should go in Umbraco. If it's something that does not make sense to store in a CMS then it might be worth considering integrating it in another way like using a custom section (If it makes sense to have a UI for manipulating the data inside of Umbraco) or simply fetch the data within a custom model and expose it to the view using a custom controller.

    I hope this makes sense.

    /Jan

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Apr 09, 2015 @ 18:15
    Ismail Mayat
    1

    Ben,

    We recently worked on a project where we had the concept of a package and to that package you could add models with photos which were media items.

    Intially we used umbraco for storing the packages, worked fine however once it went out into wild and with amount of packages being created and data being added to package we were starting to see lag on the front end.  So we moved out the packages in to db table which gave us a really big boost on site speed which for client was critical.

    Regards

    Ismail

  • Ben Ellis 5 posts 35 karma points
    Apr 10, 2015 @ 22:09
    Ben Ellis
    0

    Thanks for the feedback guys. It'll really help avoid headaches in the future for me.

    An example of what we've got is an event management system, where I was debating whether an event should be a content item or a record in a table. Over time there could be a large number of events (1000-10000) and I was thinking this will be hard to manage via the UI and may slow down the web site.

Please Sign in or register to post replies

Write your reply to:

Draft