User login

A new Settings API for Drupal

Update, there is an active real project doing much of this: http://drupal.org/project/variable

This is primarily a matter of deployment and developer sanity, but it is also a performance issue: large variables that aren't used on most pages shouldn't be loaded on every page.

The variable table has to change, and we need to distinguish variables that are needed on (most) every page load from those that clearly are not.

Settings we, developers, can split intelligently given an API to do so.

Pretty much every attempt to take on a piece of this issue has crashed on the shoals of it being really ugly what the variable table currently holds and does.

I've started tagging issues as SettingsAPI, http://drupal.org/project/issues/search/drupal?issue_tags=SettingsAPI

Efforts

http://drupal.org/project/variable

DX: Use hook_variable_info to declare variables and defaults

https://github.com/tizzo/system_settings

via Catch
http://drupal.org/node/391924 => Use Fields to store text variables, especially those that require text format support => Drupal core, base system, normal, needs work, 12 comments, 2 IRC mentions

http://drupal.org/node/365934 => Handle big texts / module text files / readable and localizable / get rid of _user_get_text() => Drupal core, language system, normal, postponed, 21 comments, 2 IRC mentions

Similar performance issues for schema, theme registry, and field info cache (via catch):
http://drupal.org/node/987768 => Build variable cache over time => Drupal core, base system, normal, needs work, 14 comments, 7 IRC mentions
http://drupal.org/node/1011614 => Use a partial theme registry cache during runtime => Drupal core, theme system, major, needs review, 5 comments, 4 IRC mentions
http://drupal.org/node/402896 => drupal_get_schema() wastes 1-3mb of memory

Searched words: 
variable table performance

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.