3 ms·
I can't think of a situation where that wouldn't be a slice of an array based on an integer post ID. Even with an embedded DB the IO should crush that gain, rig
by chefandy 3y ago
I can't think of a situation where that wouldn't be a slice of an array based on an integer post ID. Even with an embedded DB the IO should crush that gain, right?
- layer8 3y agoDepends on the data structure. Since new replies may have to be inserted in tne middle, it may not be organized as a linear array.
- zimpenfish 3y ago> a slice of an array based on an integer post ID Can't see how that works when you've got threading going on. e.g. You have posts 1-10 and pages of size 5. 1, 2, 5 are top level posts. 3, 4 are replies to 1. 6, 7, 8, 9 are replies to 5. 10 is a reply to 2. Which means page 1 contains 1, 2, 3, 4, 10 and page 2 is 5, 6, 7, 8, 9.
- chefandy 3y agoOh threading— yeah that's true. I still think of forums in the old school model.