Skip to content

Commit

Permalink
Disable versioning by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGrosser committed Oct 30, 2013
1 parent cf99c2d commit 91ddd3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions conf/clusto.conf
Expand Up @@ -7,9 +7,9 @@
dsn = sqlite:///clustotest.db

# Versioning mode will keep old records in the database forever after
# setting a deleted_at_version. Disabling this feature will keep your
# database small if you change things often.
versioning = true
# setting a deleted_at_version. Enabling this feature may cause your database
# to become large if you add and remove objects and attributes often
versioning = false

# Enable optional memcached support
#memcached=127.0.0.1:11211
Expand Down
2 changes: 1 addition & 1 deletion src/clusto/__init__.py
Expand Up @@ -39,7 +39,7 @@ def connect(config, echo=False):
if config.has_option('clusto', 'versioning'):
SESSION.clusto_versioning_enabled = config.getboolean('clusto', 'versioning')
else:
SESSION.clusto_versioning_enabled = True
SESSION.clusto_versioning_enabled = False

# Set the log level from config, default is WARNING
if config.has_option('clusto', 'loglevel'):
Expand Down

0 comments on commit 91ddd3a

Please sign in to comment.