File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,8 @@ function sendResponse(
523523 }
524524}
525525
526- const LARGE_FILE_THRESHOLD = 4 * 1024 * 1024 ;
526+ const LARGE_FILE_THRESHOLD = 1 * 1024 * 1024 ;
527+ const MAX_AUTO_LOAD_FILES = 10 ;
527528
528529function sendMessageToZipWorker ( message : {
529530 type : string ;
@@ -756,9 +757,13 @@ async function startTableLoading(message: StartTableLoadingMessage) {
756757 continue ;
757758 }
758759
760+ // Count how many files this table requires
761+ const fileCount = table . nodeFiles ? table . nodeFiles . length : 1 ;
762+
759763 if (
760764 table . size > LARGE_FILE_THRESHOLD ||
761- ( tables . length > 300 && table . path . includes ( "/nodes/" ) )
765+ ( tables . length > 300 && table . path . includes ( "/nodes/" ) ) ||
766+ fileCount > MAX_AUTO_LOAD_FILES
762767 ) {
763768 self . postMessage ( {
764769 type : "tableLoadProgress" ,
You can’t perform that action at this time.
0 commit comments