savePartition#

swordfish.function.savePartition()#

Save a table as a partitioned DFS table. It must be executed by a logged-in user.

An empty table must be created with the function createPartitionedTable.

Parameters:
  • dbHandle (Constant) – A DolphinDB database handle.

  • table (Constant) – The table in memory to be saved.

  • tableName (Constant) – Aa string indicating the desired name of the saved partitioned table.

  • compression (Constant, optional) – A Boolean variable. It sets the compression mode. When it is set to true, the table will be saved to disk in compression mode, by default DFLT.