Pickle, as a rule, is suitable for storing objects, if you want to efficiently store raw data and then crumbling is probably not the way to go, but it really depends on the specific situation - this is βloadingβ critical data time, you have development time to create a database, queries, etc.
If your data is a million pairs of username and date of birth, then pickle is probably not the best way to go, it would be easier to store the data in a flat text file.
Both pickle and db / SQL solutions have the advantage of being extensible. Remember that pickle is not "safe", so you should consider the reliability of the file, for example. Will it be transmitted between different systems.
In general, if your data sets are very large, relational Db may be more suitable than brine, but you can also consider other storage mechanisms, for example. Redis, MongoDb, Memcached. They are all highly dependent on the situation, so it may be useful for you to learn more about how the data will be used.
source share