Update post_binary_sizes_to_dashboard.py (#3161)

Discussed with Faith, because the data size is very small and changes are gradual, there is no need to delete the old data. We want to keep all the history.
This commit is contained in:
Changming Sun 2020-03-09 13:21:58 -07:00 committed by GitHub
parent a59243090a
commit 6ed5d7c332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,13 +54,6 @@ def write_to_db(binary_size_data, args):
try:
cursor = cnx.cursor()
#delete old records
delete_query = ('DELETE FROM onnxruntime.binary_size '
'WHERE build_time < DATE_SUB(Now(), INTERVAL 180 DAY);'
)
cursor.execute(delete_query)
#insert current records
for row in binary_size_data:
insert_query = ('INSERT INTO onnxruntime.binary_size '