@classmethod
    def _by_param(self, param, value, table='pastes', fetch_all=False):
        cur = self._cursor()
        # Although we should never use string
        # formatting techniques on sql strings,
        # it's OK here because only $value is
        # untrusted
        cur.execute(
            'SELECT * FROM {0} WHERE {1} = %s'.format(table, param),
            (value,)
        )
        if fetch_all:
            result = cur.fetchall()
        else:
            result = cur.fetchone()

        cur.close()
        return result
Calls asynchronously _collect_metrics_atomic on all MORs, as the
dataset/ETHPy150Open joealcorn/PyPaste/PyPaste/models/__init__.py/BaseModel._by_param--crossover with--dataset/ETHPy150Open serverdensity/sd-agent/checks.d/vsphere.py/VSphereCheck.collect_metrics