Results 1 to 2 of 2

Thread: Resource files vs Database

  1. #1
    theateist Guest

    Resource files vs Database

    I build WEB application using MVC.
    It will support multi-language(more than 10 languages)

    I decided to store the localized data(captions for labels, buttons...) in DB.
    When application is started, all localized data, according to selected language, is loaded to the cache(this avoids multi requests to DB).

    Because of caching, I didn't felt(at least until now) the load on SQL server or IIS.

    I thought about using .resx files and my questions are:
    1 - Are using resources files better then using DB if thinking about performance issue?
    2 - Will I fill the load on SQL server or IIS in the future?

    P.S.: I know that one of the differences of using resources files vs DB that resources files must be recompiled each time I change the content of it.

    Thank you

  2. #2
    Join Date
    Dec 2010
    Location
    Redhill, Surrey
    Posts
    8
    You need to be careful using flat files because of concurrent users. If the file is updated by 2 users simultaniously then you will end up with lost or corrupted data.

Similar Threads

  1. teacher resource network
    By magicman321 in forum General Questions
    Replies: 0
    Last Post: 01 Jan 2010, 11:43 AM
  2. General resource site
    By kevind0027 in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 02 Dec 2008, 07:51 PM
  3. New Myspace Resource site
    By Zacku in forum Website Design Reviews
    Replies: 0
    Last Post: 11 May 2006, 06:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •