Many `parsing sql CREATE_TABLE` logs when inserting batch data
gitmalong opened this issue · comments
table("my_table")
.insert()
.columns(columns)
.values(rows)
.execute(glue)
.await
.unwrap();
It seems that for every row that is inserted there is a log statement
Parsing sql 'CREATE TABLE "my_table" ("id" TEXT NOT NULL PRIMARY KEY,.....;'...
I am not sure what is going on behind the scenes here and whether this is expected behavior as I am not creating a table. At least I would not like to the see logs as it may slow down the app when running in the browser.
This log is presumably from sqlparser-rs
.
https://github.com/sqlparser-rs/sqlparser-rs/blob/7723ea56c5119c7d1a15233c18eb2aaf48b60dc0/src/parser/mod.rs#L361-L374
I don't know which logger you used because I used the debug macro in the log
crate, but it should only happen below the DEBUG
level.
Can you create a small snippet of code?