forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdbb9aed
committed
Optimize get_jsonb_path_all avoiding an iterator
Instead of creating an iterator object at each step down the JSONBobject/array, we can just just examine its object/array flags, which isfaster. Also, use the recently introduced JsonbValueAsText instead ofopen-coding the same thing, for code simplicity.Author: Nikita GlukhovDiscussion:https://postgr.es/m/7c417f90-f95f-247e-ba63-d95e39c0ad14@postgrespro.ru1 parentabb014a commitdbb9aed
1 file changed
+10
-23
lines changedLines changed: 10 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1329 | 1329 |
| |
1330 | 1330 |
| |
1331 | 1331 |
| |
1332 |
| - | |
1333 | 1332 |
| |
1334 | 1333 |
| |
1335 | 1334 |
| |
1336 | 1335 |
| |
1337 | 1336 |
| |
1338 | 1337 |
| |
1339 | 1338 |
| |
1340 |
| - | |
1341 | 1339 |
| |
1342 | 1340 |
| |
1343 | 1341 |
| |
| |||
1449 | 1447 |
| |
1450 | 1448 |
| |
1451 | 1449 |
| |
1452 |
| - | |
1453 |
| - | |
1454 |
| - | |
1455 |
| - | |
1456 |
| - | |
1457 |
| - | |
1458 |
| - | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1459 | 1454 |
| |
1460 | 1455 |
| |
1461 | 1456 |
| |
1462 |
| - | |
1463 |
| - | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
1464 | 1460 |
| |
1465 | 1461 |
| |
1466 | 1462 |
| |
1467 | 1463 |
| |
1468 | 1464 |
| |
1469 |
| - | |
1470 |
| - | |
1471 |
| - | |
1472 |
| - | |
1473 | 1465 |
| |
1474 | 1466 |
| |
1475 |
| - | |
1476 |
| - | |
1477 |
| - | |
1478 | 1467 |
| |
1479 |
| - | |
1480 |
| - | |
1481 |
| - | |
1482 |
| - | |
1483 |
| - | |
| 1468 | + | |
1484 | 1469 |
| |
1485 | 1470 |
| |
1486 | 1471 |
| |
| 1472 | + | |
| 1473 | + | |
1487 | 1474 |
| |
1488 | 1475 |
| |
1489 | 1476 |
| |
|
0 commit comments
Comments
(0)