Commit 5c198c1
perf(identifier): replace structure joins with identifier.base_type lookups
Now that identifier.base_type is populated (see data-model PR), remove
unnecessary joins to the structure table in hot-path queries that only
needed structure.structuretype for base-type filtering.
- BrowserAPIImpl: remove structure from base clause; structuretype → base_type;
content-type-ID filters use subqueries into the small structure table
- FileAssetFactoryImpl: drop structure join; structuretype=4 → base_type=FILEASSET
- HTMLPageAssetAPIImpl: drop structure join from all 4 modified-page queries;
structuretype=HTMLPAGE → ii.base_type=HTMLPAGE
- PermissionBitFactoryImpl: drop structure join from 5 child-htmlpage / child-content
permission queries
- AbstractIntegrityChecker: drop structure join from CSV export and both
conflict-detection queries
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 84b80f7 commit 5c198c1
5 files changed
Lines changed: 31 additions & 35 deletions
File tree
- dotCMS/src/main/java/com
- dotcms
- browser
- integritycheckers
- dotmarketing
- business
- portlets
- fileassets/business
- htmlpageasset/business
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
1627 | | - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
1628 | 1630 | | |
1629 | 1631 | | |
1630 | 1632 | | |
| |||
1634 | 1636 | | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | | - | |
| 1639 | + | |
1638 | 1640 | | |
1639 | 1641 | | |
1640 | 1642 | | |
1641 | 1643 | | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
1645 | 1649 | | |
1646 | 1650 | | |
1647 | 1651 | | |
1648 | | - | |
| 1652 | + | |
1649 | 1653 | | |
1650 | 1654 | | |
1651 | | - | |
| 1655 | + | |
| 1656 | + | |
1652 | 1657 | | |
1653 | 1658 | | |
1654 | 1659 | | |
| |||
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 150 | + | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
| |||
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | | - | |
276 | | - | |
| 274 | + | |
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
| |||
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
309 | | - | |
310 | | - | |
311 | | - | |
| 307 | + | |
312 | 308 | | |
313 | 309 | | |
314 | 310 | | |
| |||
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | 335 | | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | 352 | | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | 493 | | |
495 | | - | |
| 494 | + | |
496 | 495 | | |
497 | 496 | | |
498 | 497 | | |
| |||
2910 | 2909 | | |
2911 | 2910 | | |
2912 | 2911 | | |
2913 | | - | |
| 2912 | + | |
2914 | 2913 | | |
2915 | 2914 | | |
2916 | 2915 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | 609 | | |
611 | | - | |
| 610 | + | |
612 | 611 | | |
613 | 612 | | |
614 | 613 | | |
| |||
629 | 628 | | |
630 | 629 | | |
631 | 630 | | |
632 | | - | |
633 | 631 | | |
634 | 632 | | |
635 | | - | |
| 633 | + | |
636 | 634 | | |
637 | 635 | | |
638 | 636 | | |
| |||
653 | 651 | | |
654 | 652 | | |
655 | 653 | | |
656 | | - | |
657 | 654 | | |
658 | 655 | | |
659 | | - | |
| 656 | + | |
660 | 657 | | |
661 | 658 | | |
662 | 659 | | |
| |||
678 | 675 | | |
679 | 676 | | |
680 | 677 | | |
681 | | - | |
682 | | - | |
| 678 | + | |
683 | 679 | | |
684 | 680 | | |
685 | 681 | | |
| |||
0 commit comments