Skip to content

Why does performance degradation and collection loading & release failure occur due to entity upsert? #40408

Discussion options

You must be logged in to vote

upsert = delete + insert
Each time you upsert an entity, milvus will trigger a delete action to delete by the entity's id and an insert action to insert a new entity.
All the deleted IDs are records in L0 segment.
With more upsert/delete actions, you will see more L0 segments generated.

Datanode triggers compaction actions to erase entities by the IDs from L0 segment. The empty L0 segments mean their IDs have been processed. Empty L0 segments will be remove by GC(garbage collection) of milvus. GC action is triggered with an interval of 1 hour.

Intensive/continually upsert action will downgrade search performance because it is a heavier operation than normal insert.

The log doesn't show th…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@pipi-olo
Comment options

@yhmo
Comment options

yhmo Mar 6, 2025
Collaborator

@pipi-olo
Comment options

@yhmo
Comment options

yhmo Mar 7, 2025
Collaborator

@yhmo
Comment options

yhmo Mar 7, 2025
Collaborator

Answer selected by pipi-olo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants