Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg authored Dec 15, 2024
1 parent 4ca0fc8 commit d0bc719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jamesql/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import math
import os
import gc
import string
import threading
import time
Expand Down Expand Up @@ -829,6 +830,8 @@ def create_gsi(
self.gsis[index_by]["id2line"] = {}
self.gsis[index_by]["doc_lengths"] = {}

gc.collect()

return gsi

def search(
Expand Down

0 comments on commit d0bc719

Please sign in to comment.