• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to handle "system" preferences?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to handle "system" preferences?


  • Subject: How to handle "system" preferences?
  • From: Pascal Robert <email@hidden>
  • Date: Thu, 24 Nov 2011 15:45:49 -0500

I want to add some "system preferences" to SimpleBlog, for things like number of comments per page, if comments are moderated or not, etc. I'm wondering what's the best way to handle that. I was thinking of using a plist and read it at "boot time" so that the preferences are in memory, and writing the file when a pref changes. The problem with this solution is that the file will have to be outside the .woa since the preferences have to survive a upgrade. And if a server have more than one SimpleBlog instance (e.g., "multi tenants"), it would have to be different files.

The other solution would be to store the preferences in the database. In the case of multi tenants, each instance would have to have it own databases. The potential problem would be a performance one, we would need to call EOF every time a preference is needed (for display groups, etc.). Sure, I'm not talking about high performance system here, but it would be great to show best practices.

So, how would you manage this?
  _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to handle "system" preferences?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Connection Dictionary for ERAttachment (go away!)
  • Next by Date: Re: How to handle "system" preferences?
  • Previous by thread: Re: Connection Dictionary for ERAttachment (go away!)
  • Next by thread: Re: How to handle "system" preferences?
  • Index(es):
    • Date
    • Thread