Large files take several minutes before large_file_skip_char_limit stops parsing them #3693
Closed
3 tasks done
Labels
enhancement
New feature or request
Search before asking
Description
large_file_skip_char_limit can prevent sqlfluff from hanging potentially forever on very large files, however when I timed the linting of two 2MB DBCR files it took over 2 minutes.
I suspect the issue is the current order of operations, as it seems files are fully loaded into memory and parsed for sqlfluff commands before this large file check occurs. If large file checking occurred earlier processing could go much quicker.
Current workaround: Manually adding large files to .sqlfluffignore
Use case
As a user with large sql migrations I want my linting too to run quickly while properly ignoring overly large files.
Dialect
N/A
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: