Use CaseRecommended Write OptionDescription
Upload variablesSession.uploadDirect upload of variables with flexible type conversion. Applicable to all data types.
Pass in local data as arguments when executing server functionsrunUploads data as function arguments. Applicable to all data types.
Perform database and table operations on server from Python clientSession.table and other methods (such as Session.loadTable, Session.loadText)Manipulates server data from Python client.
For data that can be conveniently converted into DataFrames, use this option to batch write data to server.TableAppender, TableUpserter, PartitionedTableAppenderAuto type conversion is supported. For details, see the "TableAppender, TableUpserter and PartitionedTableAppender" section below.
Write stream dataMultithreadedTableWriterSends stream data to server in batches with auto type conversion.
The API client is struggling with limited resources while the DolphinDB server has sufficient resources availableEnable asynchronous mode on a sessionShifts the burden of writing data from the client to the server. This option is not usually recommended.