(self, tr, count=2000)
| 276 | # Tests the performance of the 'get_key' function |
| 277 | @fdb.transactional |
| 278 | def run_get_key(self, tr, count=2000): |
| 279 | tr.options.set_retry_limit(5) |
| 280 | s = time.time() |
| 281 | |
| 282 | for i in range(count): |
| 283 | tr.get_key( |
| 284 | fdb.KeySelector(self.random_key(), True, random.randint(-10, 10)) |
| 285 | ).wait() |
| 286 | |
| 287 | return count / (time.time() - s) |
| 288 | |
| 289 | @fdb.transactional |
| 290 | def run_get_single_key_range(self, tr, count=2000): |
nothing calls this directly
no test coverage detected