Skip to content

When I want to add a new point to the collection, should I create it from scratch? #3607

Answered by timvisee
serhatBilal asked this question in Q&A
Discussion options

You must be logged in to vote

There are two things to consider:

  • do not recreate the collection on each call, that will dete your current one
  • make sure to use unique IDs for every point you insert

Currently you're using enumerate which will result in the same IDs in each call. If you don't care about the IDs the easiest option may be to assign a random UUID as point ID for each point.

For reference, I answered the same question here: https://stackoverflow.com/a/77988925/1000145

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@serhatBilal
Comment options

Answer selected by serhatBilal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants