What is more advisable? UserData with 1000 individual entries or single entry with 1000 of csvs

   766   0   0
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
I have to store a list of up to 1000 values in the userData of a node.

Do you think should I store each entry individually in the userData, or should I create just one entry with 1000 values separated by comma.

This is what I think:
  • Thousand of individually entries: easy to retrieve with userData('myEntry1'), userData('myEntry2').
    But maybe slow and consume more memory?

  • Single dict entry of 1000 comma separated values: to retrieve it I would need to parse it and use csv module in py, but maybe overall more efficient in speed and memory consumption?

I've never used the csv module in python
  • Quick Links