+- This variable controls the behavior of the [Cursor Fetch](/develop/dev-guide-connection-parameters.md#use-streamingresult-to-get-the-execution-result) feature. When the variable is `OFF`, and Cursor Fetch is enabled, TiDB will read all the data at the start of statement execution and store it in TiDB's memory. Subsequently, the data is returned to the client based on the client's specified `FetchSize`. If the result set is too large, it may temporarily write the result to disk. When the variable is `ON`, and Cursor Fetch is enabled, TiDB will not read all the data into the TiDB node at once but will read data into the TiDB node incrementally as the client fetches it.
0 commit comments