Closed bdauer closed 8 years ago
Removing and replacing the post class will be simple. The question is what should we replace it with? If we care about search speed, a dictionary is faster. However, the fastest would be named tuples.
On second thought, if we've already entered the json-encoded data into the db and are merely pulling data out that matches the criteria, it wont make much of a difference as the "search" would have been essentially done. All results in the collected results will be given. Search speed is not much of an issue. On the discussion of memory, dictionaries and named tuples aren't much different I believe.
Never mind, just saw your post about tinydb. So yes, it does matter.
@tylerphillips55 The new branch dev has the code for this. Check it out.