You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the client's functionality to delete samples by function_id, the respective entries are not removed from the band_* collections. This means when candidates are generated, there will be dangling entries among them, which will lead to errors as these can not be resolved by their id.
Generally, if we have a broken state, we can fix it like this:
forentryindatabase["functions"].find():
ifentry["function_id"] -previous_id>1:
print("we have a gap here!")
print(previous_id, entry["function_id"])
forfidinrange(previous_id+1, entry["function_id"]):
all_gap_function_ids.append(fid)
breakprevious_id=entry["function_id"]
forband_numberinrange(0, 20):
database[f"band_{band_number}"].update_many({},{"$pull": {"function_ids": {"$in": all_gap_function_ids }}})
As a result, we probably want to use the lower part to repair our method in MongoDbStorage to remove function_ids from band_* collections.
The text was updated successfully, but these errors were encountered:
When using the client's functionality to delete samples by
function_id
, the respective entries are not removed from the band_* collections. This means when candidates are generated, there will be dangling entries among them, which will lead to errors as these can not be resolved by their id.Generally, if we have a broken state, we can fix it like this:
As a result, we probably want to use the lower part to repair our method in
MongoDbStorage
to removefunction_ids
from band_* collections.The text was updated successfully, but these errors were encountered: