|
|
|
|
|
by slver
1896 days ago
|
|
> I don't understand your point. I don't do any offset. I just pick 500 keys by cursor So you pick 500 keys and put them into a temp table. Then what? You still have to show a page that's 100 of those 500 keys. > The alternative is to transfer 400 full rows of data that will be used just to compute pages. The alternative is the hybrid cursor+offset approach, which doesn't transfer 400 full rows of anything. > I don't see any DoS vector specific to this but I'd be thrilled to learn of one. I generate enough sessions to fill your RAM with temp tables. |
|
I don't need to use offset. I can use limit. And also, offset in 500 rows dataset never was a problem.
> I generate enough sessions to fill your RAM with temp tables.
o_O These tables contain only keys. In your approach you're going to have 500 keys in memory as well. Moreover, I'm not wasting resources by transferring them in my application. I'm in fact saving resources. You're making things up.
EDIT: Are you arguing about performance impact of scanning 500 rows vs 100 rows (though I don't understand your approach either, you're skipping - scanning - 400 rows as well)? The problem of paging is scanning whole dataset.