Skip to content

Commit

Permalink
Made index saving run in background
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Nov 9, 2016
1 parent 8f6563c commit c97c7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion influxgraph/classes/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def build_index(self, data=None, separator='.'):
logger.info("Finished building index in %s",
datetime.datetime.now() - start_time)
self.index_lock.release()
self.save_index()
threading.Thread(target=self.save_index).start()
collected = gc.collect()
logger.debug("GC'd %s objects after index re-build", collected)

Expand Down

0 comments on commit c97c7ea

Please sign in to comment.