Closed l1t1 closed 4 months ago
@1t1 this is a known issue in general with usql
-- if you really need/want the performance, you can turn off syntax highlighting. Due to the way that it's currently implemented, it's N^2 algorithm depending on the length of the string that's being copy/pasted.
$ usql
Type "help" for help.
(not connected)=> \set
SYNTAX_HL = 'true'
(not connected)=> \set SYNTAX_HL false
I have been meaning to fix/change this, but it would require an immense amount of coding, roughly equal to the effort of usql
itself.
thank you, \set SYNTAX_HL false
works nicely.
I use windterm to ssh a linux host and run usql on that host, I found when I paste a sql as following
it took about 1 second or two to display all lines on the screen, I think that not a problem of windterm as other CLI such as duckdb 0.10 displayed the pasted sql immediately.