theforeman/foreman — pull request #279 by ohadlevy (2012-12-05 10:33:00+00:00)
Title: ENC speed improvments

This patch adds a new classification class which
tries to fetch all values at once

The initial implementation cared about a name / value at a time
however getting all at once (e.g. during a puppet ENC call) is much more
common.

This patch creates in memory tree of all possible values and process
them in memory instead of asking the database for each possible match.