Open kyao opened 4 years ago
Posting the same annotated file doesn't seem to delete it, it seems to try and add the new edges (this seems intentional. I didn't see how I can get this delete code to work.
Deleting the dataset from its own request does work rather quickly. It doesn't delete by edge id, though. I couldn't find any code that DELETEs by edge id, or uses SQL Alchemy to delete objects.
@zmbq if you do a PUT
instead of POST
the existing data for the variables will be first deleted.
But the issue posted by @kyao is not about that.
What is the purpose of this line ?
https://github.com/usc-isi-i2/datamart-api/blob/development/db/sql/kgtk.py#L153
Tried posting twice the FSIall_AN dataset in
performance_test
branchtest/test_data/FSI_all_Annotated.xlsx
file.The exception occurs when datamart tries to delete the previous post 50,000 edge ids at a time.
Here is part of the sql statement from the exception. It's too long include the whole thing.