How to handle "system" preferences?
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