Should I rebuild my read only database every time I launch my server?

I'm getting into web development, and I'm trying to get a grip on databases.
In an app I want to make, there is a read only database that will be filled up with a large amount of data, which will be the heart of the application, and also a lot of work to put in.
I'm uncomfortable with putting all this data into the database, as the database is "separate" from my web app code. I feel like I should rather write my data in code somewhere, and then have my application put the data into the database for me.
This way I would have my entire project written in code, and not an integral part of my software hidden away in the database, which is a bit complicated to work with, and seems difficult to move from computer to computer.
But is this a sensible way to do this, however? Should I write my data in code, and every time I launch the server, make the application drop all the tables and read them in from my code again?
Is this the wrong way to go about it? Would it cause considerable overhead? How do people do this?

Why are you uncomfortable in separating the data into a database? Don't you follow a modular approach when it comes to coding and separate the UI layer and the business layer? The data you are referring to, that many legacy applications will have at least
some of it embedded in the code in the form of constants, is an ideal lookup table data that should be stored in a database. 
>>>"This way I would have my entire project written in code, and not an integral part of
my software hidden away in the database, which is a bit complicated to work with, and seems difficult to move from computer to computer."
You can locate your database centrally and connect to it from any computer. The maintenance of your read only data in your DB is much more easier than embedding it in
the code
>>>"Should
I write my data in code, and every time I launch the server, make the application drop all the tables and read them in from my code again?"
This is totally unnecessary. If you will be entering a lot of read only data into your DB, you can have
a small utility program that provides an interface to enter the data into a DB - if you are uncomfortable with using the SSMS UI or TSQL to enter the new data. Also, reloading the data every time will only make your application look very slow and unacceptable. 
To summarize, store your data in a DB. Even it if is small application, you can start with SQL Express
edition to store the data as you will most likely need a proper DB in future if not now as your application functionality grows.
Satish Kartan www.sqlfood.com

Similar Messages

  • Scheduling workbooks in read only database

    We have a standby server for our OLTP and it is read only database. Read only database is not allowing to schedule discoverer reports. Can anyone suggest how to handle this?

    Its a replication of OLTP. Every day night OLTP logs are applied into this read only database. We cannot change anything in EUL. Whatever the changes we do in OLTP EUL it gets reflected in the read only database.

  • Using Session Beans on a read only database

    Hi,
    i am working on a weblogic 6.1 server and have to access a read only database
    using session beans. The transaction attributes of all session beans (we are using
    no entity beans) are set to NOT_SUPPORTED but every time a method is accessed
    an error message is thrown
    BEGIN TRANS in read only database .....
    Is there a way to avoid this?
    Regards
    Edmund

    I guess it is NotSupported. If not try Never.
    --Jay   
    www.architectslobby.org
    An exclusive community for Enterprise Architects

  • Run Preclone merge in read only database

    HI ,
    I have a production database is reserved for normal clone ( multi node clone ) . I have a new assignment that need to merge a appltop for a single node clone . so we choose a DR database as source , which is a read only database . When I run perl adpreclone.pl merge and enter apps password It return “ORA-01033: ORACLE initialization or shutdown in progress
    Is any have any idea how to get around this problem so that I can continue my preclone merge ?
    Thanks
    Felix

    This is DR site . It is a data guard server . so this database is not open . Below is messgae I get .
    /oracle/prod/db/prodcomn/admin/scripts/PROD_usla1-vts-mgr-1$ perl adpreclone.pl appsTier merge
    Running adgenhfver.pl with command...
    perl /oracle/prod/db/prodappl/ad/11.5.0/bin/adgenhfver.pl isPrimary=y applsysusr=APPLSYS tempdir=/oracle/prod/db/prodcomn/temp
    Please enter the APPS User [APPS]:
    Please enter the APPS password: XXXXXXX
    This is the merge Primary node:
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Do you have any idea how do I get around this problem so that I can finish preclone ?
    Thanks
    Felix

  • Using BC4J on a read-only database?

    Is it possible too configure BC4J to run against a read-only database?
    I only have query-based view objects (no Entity objects) and the data is updated by another application. The user I use to atatch to the DB only has read-only access, and when trying to run my BC4J app I get the following errors:
    Error Message: JBO-28006: Could not create persistence table PS_TXN
    Error Message: ORA-01950: no privileges on tablespace 'USERS'
    Is this PS_TXN table required even if I only want read-only transactions?
    thanks
    Brigette

    Thanks Shay,
    In conjunction with http://otn.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html (which showed me how/were to set the property), this has solved the problem!
    keep smiling
    Brigette

  • Backing Up Read-Only Databases

    Below Link looks like applies to SQL2008 and 2008R2, 
    https://technet.microsoft.com/en-us/library/ms190374(v=sql.105).aspx 
    Will that be the same case for all the SQL2012 also ?
    Thanks in Advance.
    Regards,
    Ram.
    ramakrishna

    https://technet.microsoft.com/en-us/library/ms190374(v=sql.105).aspx 
    Will that be the same case for all the SQL2012 also ?
    Hi Ram,
    Yes. It will be the same case for SQL Server 2012. For more details about
    backing up Read-Only databases in SQL Server 2012, you can also review the following articles.
    Partial Backups (SQL Server)
    https://msdn.microsoft.com/en-us/library/ms191539(v=sql.110).aspx
    Differential Backups (SQL Server)
    https://msdn.microsoft.com/en-us/library/ms175526(v=sql.110).aspx
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Purchased QT Pro. Every time I launch it I have to re-register. Someone posted a hack of sorts but I don't want to hack my computer. I purchased the program it should not be troublesome. My mac is healthy maybe Apple software isn't. help!

    I asked earlier. Purchased QT Pro. Every time I launch it I have to re enter the registration  # which is a huge pain.
    Someone (Link) wanted me to open the terminal and run some diagnostic. There is NO Way i should have to go into my terminal and run programs
    to run an apple program I just purchased. I am using Lion 10.7.4, come-on apple help me fix this or refund my purchase. This is horrid

    QuickTime Player 7.6.6 installs in the Utilities folder (not the same version 10.1 that installs in the Applications folder).
    Once you enter the registration info the "Pro" features are unlocked for all User accounts on the machine.
    Did you move QuickTime Player 7.6.6 from the Utilities folder?
    Have you tested QuickTime Player 7.6.6 when logged in using a different User account?

  • How to make a field read only at run time by entering the value in another field.

    Hi Team,
                  Recently i got a requirement , i Have 2 dff's at header level and line level related to down payment ,and the DFF having two fields such as amount and if i enter amount that should be converted into % then populate the total amount field, at the same time % field should be gray out . if i give %(percentage) then amount field should be grayed out(read only) and then it should populates towards the total amount at header level.
    Can any one help me on this issue.
    Thanks,
    raghava

    I would to elaborate this issue...
    I have DFF's enabled at Header level and line in Purchasing Module -->Buyer WorkBeanch --> Order page here they did, as "Details". Details contains two Filed's
    1. Amount
    2.Percentage (%)
    Requirement :
    i.if i enter "down payment amount" then "down payment %" going to become read only. vise verse.
    ii. If I enter "down payment amount " or "down payment %" at header level then not allowing to enter at line level .
    thanks,
    raghava

  • I installed the latest Acrobat Reader (11) and every time I try to do a Save As, it crashes the entire Adobe program closing all files.  I tried uninstalling and re-installing and it still crashes.

    I installed the latest Acrobat Reader (11) and every time I try to do a Save As, it crashes the entire Adobe program closing all files.  I tried uninstalling and re-installing and it still crashes.

    Hi Bryan ,
    It happens when you save it as an Adobe PDF or a normal PDF?
    Happens with all the files or any specific one?
    What exact version of Acrobat are you using?
    Try updating it to the latest one if it is an older one.
    You may also want to uninstall and re install it to check.
    Let us know how it goes.
    Regards
    Sukrit Dhingra

  • I have tried EVERY suggestion Adobe has made and no matter what, I get the black "Adobe Reader Installer" screen EVERY TIME!!  Any suggestions to help me overcome this problem would be appreciated.  BTW:  I have a Windows 7 Home OS.  I prefer FireFox.  I

    I have tried EVERY suggestion Adobe has made and no matter what, I get the black "Adobe Reader Installer" screen EVERY TIME!!  Any suggestions to help me overcome this problem would be appreciated.  BTW:  I have a Windows 7 Home OS.  I prefer FireFox.  I have successfully downloaded Adobe Reader using all the major browsers, however it does NOT matter, I am NOT able to actually install Adobe Reader, every time all I get is the black pop-up "Adobe Reader Installer" screen!!!

    PS.... I had a previous version on my computer that needed to be updated.... so I uninstalled it because I was having trouble installing the new version.... so even that did not help!!

  • Aperture 3 keeps asking for my serial numbers every time I launch it.

    I'm writing this not because I have this problem (though I did have it) but because I couldn't find a direct answer here in Apple Support Communities but did eventually solve it.
    After purchasing a new iMac to replace an aging MacBook Pro, I tried copying the original ProAppsSystemID file in /Library/Application Support/ProApps from the old to the new system, hoping that would transfer my Aperture license. That didn't work (for me), though Aperture continued working on the old MacBook Pro. I went digging and found my original Aperture activation keys (original and upgrade), entered those on the new iMac, and was finally able to launch Aperture 3 on the iMac.
    My problem was that Aperture kept asking me for my serial number every time I launched it. I had originally purchased Aperture 2 and then purchased the Aperture 3 upgrade. As it should, when I supplied my Aperture 3 activation key, it noted that was for an upgrade and prompted me to enter my original key. After supplying my original Aperture 2 (full license, not an upgrade) key, it would continue and launch.
    I could then use Aperture just fine, as before, however, its "About" window showed that it was "unlicensed". The next time I'd re-launch Aperture (after quitting it, obviously), I would have to go through the same process, supplying first my Aperture 3 upgrade key and then my Aperture 2 key, before it would finish launching.
    I tried everything I could think of: uninstalling and reinstalling Aperture 2, upgrading again to Aperture 3, deleting Aperture preference files, and so on. I tried logging in as root and repeating everything. I tried "repair disk permissions". Nothing helped!
    What seemed to fix my problem was going back into /Library/Application Support/ProApps and renaming "ProAppsSystemID" to "ProAppsSystemID xxx", relaunching Aperture 3, and entering the activation keys one last time. At that point, the "About" box properly indicated my version was licensed, and I was able to exit and re-launch Aperture without being prompted!
    Although my problem is solved, I'm still a but mystified, however, because the file named "ProAppsSystemID xxx" is still there, its modification date is unchanged from when I renamed it, and a new "ProAppsSystemID" file has not appeared in that directory.
    Also, it's a shame that Aperture's licensing is so fragile that this problem should arise at all. If there was something wrong with my system ID file, Aperture should have opened an error dialog or at least noted something in the system log. (It didn't, I checked.) Apple really should fix that. And here I thought only Adobe shipped egregiously stupid upgrade/licensing logic...

    Thanks  - this worked for me too - you saved me alot of heartache and wasted time :-)

  • IChat AV 5.0.3 requires password every time I launch the program

    Does anyone know why this is happening? After the recent 10.6.4 update, every time I launch iChat a dialog box pops up with my MobileMe account name, which has a check box next to it, and an input field below it which prompts me to type in my MobileMe password. It never did that before. I only use 1 account in iChat. Does anyone know what's causing this to pop up every time I launch iChat?

    Hi,
    The Password is saved in the Keychain and called by iChat when needed.
    You can decide not to enter the password and iChat will ask each time it is needed (Although it sounds like you did not set it up this way).
    Go to the Application/Utilities folder and open Keychain Access.
    Open any Padlocks required to read the details.
    Select the Application part in the lower left section.
    Find your @Me.com name in the list.
    Double click this to open the info panel.
    First check the Access tab
    It may list "All/Any" apps or it may be set to Specific apps.
    It it is set to be the specific option then is iChat Listed.
    Next retrun to the left hand tab and then tick the Show Password Box
    This will bring up a dialogue requiring your Password and show you several Buttons.
    Enter the password and Click Allow Once.
    The Info panel should now show you the password.
    If it is Blank enter it and Save.
    If it is "wrong" then change it and Save.
    Next you should check if you "Own" and have permissions to write too the Keychain.
    Open Your Home Folder (Little House icon) then Library and the Keychain folder in there.
    Highlight the login.keychain with a single click
    Do a "Get Info" (File Menu > Get Info or the keystrokes listed)
    In this panel at the bottom is a tab to show who owns the File and it will also list permission as to Read and Write access.
    You should own it and it should have Read and Write access.
    9:24 PM Sunday; July 18, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Every time i launch garageband i get this message "Error code 28773 was returned by the Audio driver."

    HI. I just got a new macbook pro 15".
    every time i launch garageband i get this message
    "Error code 28773 was returned by the Audio driver."
    when i hit record, the shaded area in GB starts to advance, but it doesn't record any sound, and when i hit the space bar, the recorded area disappears.
    anyone know how to fix this?
    I have installed BOOM, but i think that's the only extra sound software i have.]
    PLEASE HELP!
    thanks,
    mojoman22

    Please read this whole message carefully, especially the warnings, before doing anything.
    1. The changes to your configuration suggested here should be considered provisional; they may not solve your problem, or they may remove functionality that you find useful. If a third-party system modification that you want to keep is causing the problem, seek help from its developer.
    2. WARNING: Back up all data now if you haven’t already done so. Before proceeding, you must be sure you can restore your system to its present state, even if it becomes unbootable. If you’re not sure you can do that, STOP — DON’T CHANGE ANYTHING. If you’re dissatisfied with the results of the procedure suggested below, restore from your backup. I will not be responsible for the consequences, and I will not be able to help, if you ignore this warning.
    3. You should either remove or update the following system modification(s), if an update is available from the developer:
    Parallels
    and definitely remove at least the following:
    Boom
    † MacKeeper
    † VirusBarrier
    4. Whatever you remove must be removed completely, and (unless otherwise specified in this message) the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job. I can't be more specific, because I don't install such things myself. Please do your own research.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    Again, please don't ask me to do this research for you. You can do it better than I can, because I haven't installed the product and I may not even know what it is.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    WARNING: Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.
    5. I recommend that you never reinstall the modifications marked with a dagger (†) above, if any. If your problem is resolved after uninstalling all the above modifications and rebooting, but you still want to use some of those not marked with a dagger, you can experiment with putting them back, one at a time, testing carefully after each step. Keep in mind that system modifications may be incompatible with each other or with future OS X updates, so it may not be clear which one is at fault.
    6. If you still have problems after making the suggested changes and rebooting, post again. Remember: if you don’t like the results of this procedure, you can undo it by restoring from the last backup you made before you started.
    Remove the "MacKeeper" crapware as follows.
    Note: These instructions apply to the version of the product that I downloaded and tested in early 2012. I can't be sure that they apply to other versions, nor do I intend to repeat the test.
    IMPORTANT: "MacKeeper" has what the developer calls an “encryption” feature. In my tests, I didn't try to verify what this feature really does. If you used it to “encrypt” any of your files, “decrypt” them before you uninstall, or (preferably) restore the files from backups made before they were “encrypted.” As the developer is not trustworthy, you should assume that the "decrypted" files are corrupt unless proven otherwise.
    In the Finder, select Go ▹ Applications from the menu bar, or press the key combination shift-command-A. The "MacKeeper" application is in the folder that opens. Quit it if it's running, then drag it to the Trash. A dialog will pop up asking why you want to uninstall it. You don't have to provide that information. Enter anything you like in the text box, then click the Uninstall button. All the functional components of the software will be deleted. That's the only useful feature of "MacKeeper:" it deletes itself. Reboot.
    Do not try to uninstall by dragging the MacKeeper icon in the Dock or the LaunchPad to the Trash.
    Here are some general suggestions. If you want your computer to be usable, don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” “extenders,” “cleaners,” “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, this kind of material is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    The only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Never install any third-party software unless you know how to uninstall it.

  • Why does CC need my login every time I launch a CC program?

    On my Windows 7 64 bit system with some CS6 and CC programs and running from an administrator account with UAC set at "never notify" I'm being asked for my login just about every time I launch any CC program.
    This is has been slowly getting. This is not following any system change, new CC install or any other system change or crash I'm aware of.
    I know others have had this problem but if there is a definitive fix available I can't find it.
    Is there a fix?
    I'll leave the obligatory complaints about how annoying this is out but be assured, they're there!
    Thanks,
    Tom

    Sync unfortunately is known to sometimes corrupt or duplicate bookmarks. I had hoped it may have been fixed with the New Sync but apparently not.
    * Bug [https://bugzilla.mozilla.org/show_bug.cgi?id=812348 812348] - Firefox Sync duplicating and scrambling bookmarks & folders
    *Please only vote or follow . Do not add comments unless it is brand new information, or it is something asked for in the bug.
    ** https://bugzilla.mozilla.org/page.cgi?id=voting.html
    **https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
    ** Follow by using CC <br />You are able to follow the bugs by using the [Save] option whilst the []CC option is checked.
    ** Note you need an email address to register with bugzilla and that will be made public
    Update
    In fact this bug comment specifically may be of interest
    * [https://bugzilla.mozilla.org/show_bug.cgi?id=812348#c32 bug 812348#c32]
    ''If you have lots of bookmarks, or a flaky network connection, or add/change bookmarks frequently, then you're at increased risk of seeing corruption, and there's not much you can do about it. I recommend not using bookmark sync if it's a problem for you.''

  • Every time I launch Mail, there's a 15-20 second delay

    Every time I launch Mail, there's a 15-20 second delay. This just started happening, and I first noticed it after I *disabled* (by removing) the MailHug plugin. I can't click on Window > Activity to find out what is the matter, either.
    What could be the cause?

    The delay is actually about 45 seconds. No useful system.log information. I tried rebuilding the envelope files to no avail.

Maybe you are looking for

  • Dunning letters generation when customer address is changed

    Hi, For some customers no dunning letters were generated. After investigation inactive bill-to site should be activated as invoices were assigned to this bill-to. How is possible to make that dunning letters generated when customer address is changed

  • AED not appearing for utilization

    Hi all I am reposting the question having hopes of getting replies.. A similar question asked in this forum has also been included. This particular case is for import trading scenario Purchase Order is made in MM and during MIGO excise invoice is cap

  • Need advice on how to approach interactive timeline/chart Component

    For my application I need a component (or combination of components) that shows a number of different types of events along a timeline, displays them in different ways as specified and allows you to click/hover along the timeline to add/modify/get de

  • Requirements for ABAP and XI Certification

    Hello Folks, I have about 2years of work experience in SAP ABAP and XI . I have resigned from my company few months back and got relocated to Switzerland. Im currently looking for SAP jobs here at switzerland and also wanted to complete with my certi

  • Flash player 8 will not load into internet explorer

    Hello, I can not view the flash player 8 swf in Internet Exployer 6. I can view player 7 and can view the player 8 in another computer but not my main development computer. Anyone else having this problem? Thanks in advance for any advice you can giv