dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
805 stars 461 forks source link

Some CategoryFactoryImpl optimizations #2543

Closed dotjorgeu closed 4 years ago

dotjorgeu commented 11 years ago

getParents(Categorizable child) hits catCache.getParents(child) that's great

then if we want to filter by relation_type we don't getParents(Categorizable child, String relationType)

I think we should call getParents(child) that will use cache and then filter by relationType in another list and return it.

I see the same with getChildren getChildren(Categorizable parent) hits cache but getChildren(Categorizable parent, String orderBy) don't getChildren(Categorizable parent, String orderBy,String relationType) don't

We can call getChildren(parent) that hits cache and in a copy of the list filter and sort.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.