You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when inserting into a column with a default value set, omitting the column's value in the INSERT statement (so that the default value is used) results in extremely slow performance. Compared to explicitly specifying the column's value during INSERT, it seems to be more than 10 times slower, although the exact slowdown is not consistent.
# table
CREATE TABLE Singers (
SingerId STRING(36),
Name STRING(MAX) default (\"foo\"),
Age INT64 default (20)
) PRIMARY KEY (SingerId)
Is it possible to achieve the same level of performance as when specifying the default value explicitly?
I understand that since this is an emulator, it's important that it satisfies the interface, and performance is a lower priority. However, because it's also used as a test database in some cases, it would be great if the performance could be improved.
The text was updated successfully, but these errors were encountered:
I noticed that when inserting into a column with a default value set, omitting the column's value in the INSERT statement (so that the default value is used) results in extremely slow performance. Compared to explicitly specifying the column's value during INSERT, it seems to be more than 10 times slower, although the exact slowdown is not consistent.
Click to expand sample code
logs
This issue has been observed in version 1.5.24.
Request
Is it possible to achieve the same level of performance as when specifying the default value explicitly?
I understand that since this is an emulator, it's important that it satisfies the interface, and performance is a lower priority. However, because it's also used as a test database in some cases, it would be great if the performance could be improved.
The text was updated successfully, but these errors were encountered: