[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [EXT] [cti-taxii] topics from today's call - part 3
Here is the data that shows the performance impacts of doing queries with LIMIT/OFFSET versus the same query without the OFFSET. This performance problem all goes away, if you just do simple WHERE queries and you do them based on some incremental field. And since we already have that in TAXII, aka, the Date Added to micro second precision, this becomes super easy and super fast.
Basic Query with 1000 records
Individual Times (ms): 0 0 0 0 0 0 0 0 0 0
Average Time (ms): 0
Offset Query with 1000 records with offset 500
Individual Times (ms): 4 3 3 3 3 3 3 4 4 7
Average Time (ms): 4
Basic Query with 10000 records
Individual Times (ms): 0 0 0 0 0 0 0 0 0 0
Average Time (ms): 0
Offset Query with 10000 records with offset 5000
Individual Times (ms): 44 32 34 29 34 27 28 32 38 27
Average Time (ms): 33
Basic Query with 50000 records
Individual Times (ms): 0 0 0 0 0 0 0 0 0 0
Average Time (ms): 0
Offset Query with 50000 records with offset 25000
Individual Times (ms): 238 169 161 164 170 164 166 162 169 157
Average Time (ms): 172
Basic Query with 100000 records
Individual Times (ms): 0 0 0 0 0 0 0 0 0 0
Average Time (ms): 0
Offset Query with 100000 records with offset 50000
Individual Times (ms): 702 379 384 351 373 354 349 367 361 366
Average Time (ms): 399
Basic Query with 250000 records
Individual Times (ms): 1 0 0 0 0 0 0 0 0 0
Average Time (ms): 0
Offset Query with 250000 records with offset 300000
Individual Times (ms): 7457 6209 6216 6101 6116 6161 6134 6084 6095 6130
Average Time (ms): 6270
From: cti-taxii@lists.oasis-open.org <cti-taxii@lists.oasis-open.org> on behalf of Bret Jordan <Bret_Jordan@symantec.com>
Sent: Tuesday, December 12, 2017 2:54:54 PM To: cti-taxii@lists.oasis-open.org Subject: [EXT] [cti-taxii] topics from today's call - part 3 I would like us to consider dropping the pagination by Items concept in TAXII 2.1 and replace it with a simple query of the date added to the collection.
https://github.com/oasis-tcs/cti-taxii2/issues/23
Bret |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]