We are using Spanner db for staging large data set and we want to truncate the table on schedule basis. The table holds more than 25+ Million rows at anytime. we want to truncate the table without dropping and recreating it. What is the option in GCP to do it.
Currently we running Gcloud command manually with --enable-partitioned-dml option and which is timing out after deleting < 1M rows. Please suggest better way of doing it.
gcloud spanner databases execute-sql db-name --sql="delete from tableName where SpannerCommitTS