Skip to content
Discussion options

You must be logged in to vote

@sarahbehrens-cognite if using the streaming method, flatterer would not be aware of any filenames as you are only supplying it each JSON item, and no other context. For this case, for each entire stream, the _link values would start from 0 and not reset every file. So as long as for each stream (each use of array_item_generator) had a unique value for id-prefix then you would not get id conflicts. So something like making id-prefix be datetime.datetime.now().isoformat() + '_' would mean you would never have to worry about the link IDs ever clashing.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sarahbehrens-cognite
Comment options

@kindly
Comment options

Answer selected by sarahbehrens-cognite
@sarahbehrens-cognite
Comment options

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