summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-11-24 14:27:23 -0500
committerAdam <Adam@anope.org>2014-11-24 14:27:23 -0500
commit42238034490fb5479d787bd1695750387d508200 (patch)
treec93c62e0e1c936e656ae5b9ee1b62380ce2a194c /data
parentd492923610d9c9146b2a2b63de38deab2cfd4ca7 (diff)
Rewrite serializable to have field level granularity
Represent serializable objects in a digraph, and as a result made most object relationships implicitly defined, and use the graph to trace references between objects to determine relationships. Edges may also be marked as having a dependency of the object they point to, which allows for automatic cleanup and deletion of most objects when no longer needed. Additionally, this allows not having to require in-memory copies of everything when using external databases. db_sql has been rewritten for this and now always requires a database to function. db_sql with MySQL now requires InnoDB to make use of transactions and foreign key constraints.
Diffstat (limited to 'data')
-rw-r--r--data/example.conf47
1 files changed, 4 insertions, 43 deletions
diff --git a/data/example.conf b/data/example.conf
index e131aed23..f10c62fb2 100644
--- a/data/example.conf
+++ b/data/example.conf
@@ -1089,64 +1089,30 @@ module
* This directive is optional, and you are discouraged against enabling it.
*/
#nobackupokay = yes
-
- /*
- * If enabled, services will fork a child process to save databases.
- *
- * This is only useful with very large databases, with hundreds
- * of thousands of objects, that have a noticeable delay from
- * writing databases.
- *
- * If your database is large enough cause a noticeable delay when
- * saving you should consider a more powerful alternative such
- * as db_sql or db_redis, which incrementally update their
- * databases asynchronously in real time.
- */
- fork = no
}
/*
- * db_sql and db_sql_live
+ * db_sql
*
- * db_sql module allows saving and loading databases using one of the SQL engines.
- * This module loads the databases once on startup, then incrementally updates
- * objects in the database as they are changed within Anope in real time. Changes
- * to the SQL tables not done by Anope will have no effect and will be overwritten.
- *
- * db_sql_live module allows saving and loading databases using one of the SQL engines.
+ * db_sql allows saving and loading databases using one of the SQL engines.
* This module reads and writes to SQL in real time. Changes to the SQL tables
- * will be immediately reflected into Anope. This module should not be loaded
- * in conjunction with db_sql.
+ * will be immediately reflected into Anope.
*
*/
#module
{
name = "db_sql"
- #name = "db_sql_live"
/*
- * The SQL service db_sql(_live) should use, these are configured in modules.conf.
+ * The SQL service db_sql should use, these are configured in modules.conf.
* For MySQL, this should probably be mysql/main.
*/
engine = "sqlite/main"
/*
* An optional prefix to prepended to the name of each created table.
- * Do not use the same prefix for other programs.
*/
#prefix = "anope_db_"
-
- /* Whether or not to import data from another database module in to SQL on startup.
- * If you enable this, be sure that the database services is configured to use is
- * empty and that another database module to import from is loaded before db_sql.
- * After you enable this and do a database import you should disable it for
- * subsequent restarts.
- *
- * Note that you can not import databases using db_sql_live. If you want to import
- * databases and use db_sql_live you should import them using db_sql, then shut down
- * and start services with db_sql_live.
- */
- import = false
}
/*
@@ -1154,11 +1120,6 @@ module
*
* This module allows using Redis (http://redis.io) as a database backend.
* This module requires that m_redis is loaded and configured properly.
- *
- * Redis 2.8 supports keyspace notifications which allows Redis to push notifications
- * to Anope about outside modifications to the database. This module supports this and
- * will internally reflect any changes made to the database immediately once notified.
- * See docs/REDIS for more information regarding this.
*/
#module
{