Why are settings stored in xml files vs database?

English! place to talk about development, programming and coding
Post Reply
freak
Znuny newbie
Posts: 19
Joined: 22 Sep 2014, 17:30
Znuny Version: 4.0.5

Why are settings stored in xml files vs database?

Post by freak »

I'm not arguing the point, just curious, why are configuration settings storing in xml files (such as Framework.xml) instead of the database?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Why are settings stored in xml files vs database?

Post by jojo »

this is just default config settings. It is converted to Perl Code to be used (ZZZAAuto.pm)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
freak
Znuny newbie
Posts: 19
Joined: 22 Sep 2014, 17:30
Znuny Version: 4.0.5

Re: Why are settings stored in xml files vs database?

Post by freak »

Right but why not keep the settings in the database?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Why are settings stored in xml files vs database?

Post by crythias »

Less overhead? Config is reasonably static. No need to run a query on stored variables.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
freak
Znuny newbie
Posts: 19
Joined: 22 Sep 2014, 17:30
Znuny Version: 4.0.5

Re: Why are settings stored in xml files vs database?

Post by freak »

Could it be that this method allow pretty much anything in the configuration vs a set key/value design in a database?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Why are settings stored in xml files vs database?

Post by crythias »

yes plus hierarchy. Things where key-value pairs now become key-array.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply