Jdbc fast but web ui query slowly

when i use jdbc:dremio:zk=zk:2181
my sql query cost 2s
but web ui “New Query” cost 3m+
05e8c3be-e04b-45b3-abea-73ee48e9c06b.zip (46.6 KB)
7e823dda-25e5-44af-825e-a2deb8278265.zip (36.9 KB)

@lanranjun When you run a query via UI, Dremio writes results, shown as ARROW_WRITE in the job profile, see screenshot below. The UI query was waiting on disk to write the result file, Are you writing results also to a distributed storage, it is recommended we write results to local SSD’s on each executor