From 6ed5d7c332920343b7147debbf77870faf738fcc Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Mon, 9 Mar 2020 13:21:58 -0700 Subject: [PATCH] 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. --- .../github/windows/post_binary_sizes_to_dashboard.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/ci_build/github/windows/post_binary_sizes_to_dashboard.py b/tools/ci_build/github/windows/post_binary_sizes_to_dashboard.py index 25f2d53dba..d2ff370301 100644 --- a/tools/ci_build/github/windows/post_binary_sizes_to_dashboard.py +++ b/tools/ci_build/github/windows/post_binary_sizes_to_dashboard.py @@ -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 '