mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-22 19:23:30 +00:00
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:
parent
a59243090a
commit
6ed5d7c332
1 changed files with 0 additions and 7 deletions
|
|
@ -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 '
|
||||
|
|
|
|||
Loading…
Reference in a new issue