This article provides Python sample codes for creating or dropping partitions.
To improve search efficiency, you can divide a collection into several partitions by tags. In fact, each partition is a collection.
# Create a partition. >>> client.create_partition('demo_films', 'American')
// Here we create a partition called "American" // because the films to insert are American films. final String partitionTag = "American"; client.createPartition(collectionName, partitionTag);
>>> client.drop_partition(collection_name='demo_films', partition_tag='American')