Extendy / SmartyURL

SmartyURL is a PHP-based web application for Smart URL management, Sharing, shortening, and analytics, featuring smart redirects.
https://docs.smartyurl.extendy.net/
MIT License
12 stars 2 forks source link

duplicated tag in tags cloud #43

Closed ghost closed 1 year ago

ghost commented 1 year ago

in New URL form when showing tags cloud and if urltags_shared_between_users set to true then if there is same tag name for more than one user then the tag cloud shown duplicated tags:

See: image

While this isn't problematic as each tag has its unique id, we should enhance performance by displaying only one tag, eliminating duplicates.

mshannaq commented 1 year ago

but to do that I use 2 db query in src/UtrlTags::getUserUrlTagsCloud which i think is not best for performance:

I did this in order to check for duplicates among tags. If there is a duplication, I prioritize using tags that are primarily associated with the user instead of other users tags.