pull-request-notifier-for-bitbucket icon indicating copy to clipboard operation
pull-request-notifier-for-bitbucket copied to clipboard

Storing data separately for repository/project

Open sithera opened this issue 8 years ago • 1 comments

Hello,

I have a question regarding storing data by plugin. I see that add-on uses PluginSettings interface and stores all configurations as a JSON in table plugin_setting in one entry.

Let's assume that I have 1000 different configurations. If all configurations are stored as a single string I wonder about performance. Every time plugin needs to get some data it reads from cache whole data and parse it.

Would it not be better if configurations were stored separately for project or repo?

Thanks,

sithera avatar Dec 15 '16 12:12 sithera

Maby you can use the filter regexp/string functionality to avoid having 1000 configurations.

It would probably be better to store it on repo level but so far I have not had any performance issues reported. So not a big issue right now.

tomasbjerre avatar Dec 15 '16 15:12 tomasbjerre