Skip to content

Commit

Permalink
add/set default partition size
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi committed Sep 27, 2020
1 parent e2954e8 commit 2171936
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pystore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,13 @@ def delete_store(store):
def delete_stores():
shutil.rmtree(get_path())
return True

def set_partition_size(size=None):
if size is None:
size = config.DEFAULT_PARTITION_SIZE * 1
config.PARTITION_SIZE = size
return config.PARTITION_SIZE


def get_partition_size():
return config.PARTITION_SIZE

0 comments on commit 2171936

Please sign in to comment.