This commit adds the database index to optimize the query on Environment Detail page. Changelog: performance