[katello-devel] key-value pairs for objects in katello db

Dmitri Dolguikh dmitri at redhat.com
Wed Aug 15 14:38:04 UTC 2012


On 15/08/12 02:26 PM, Tom McKay wrote:
> One of the design tasks for this sprint is to come up with a way to associate key-value pairs to systems and subscriptions. This would be similar to the system facts that exist. It would be nice to allow these pairs to exist on other objects now or in the future as well (eg. activation keys).
>
> Question: What is the best way to model this in the katello db? Joins or something?
>
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
How many key-value pairs are we looking at: per system/per 
subscription/total per katello installation? Should they be mutable? The 
question was raised about searching - do we need to support it?

If the total number of key-value pairs is low (doesn't cross a million 
rows threshold) it should work ok, although searches will start to slow 
down when approaching the threshold above.

If the total number of pairs is large, might be better to store the 
whole set as a text blob, and rely on elastic search for lookups.

-d




More information about the katello-devel mailing list