PgHero

Space

Database Size: 141 MB

Loading...

12 unused indices. Remove them with a migration for faster writes.

rails generate migration remove_unused_indexes

And paste

remove_index :searchjoy_searches, name: "index_searchjoy_searches_on_user_id"
remove_index :searchjoy_conversions, name: "index_searchjoy_conversions_on_convertable"
remove_index :blazer_checks, name: "index_blazer_checks_on_creator_id"
remove_index :blazer_dashboard_queries, name: "index_blazer_dashboard_queries_on_dashboard_id"
remove_index :blazer_dashboards, name: "index_blazer_dashboards_on_creator_id"
remove_index :blazer_queries, name: "index_blazer_queries_on_creator_id"
remove_index :blazer_uploads, name: "index_blazer_uploads_on_creator_id"
remove_index :genres_movies, name: "genres_movies_movie_id_idx"
remove_index :blazer_audits, name: "index_blazer_audits_on_query_id"
remove_index :blazer_audits, name: "index_blazer_audits_on_user_id"
remove_index :ratings, name: "ratings_movie_id_idx"
remove_index :ratings, name: "ratings_rated_at_idx"
Relation Size 7d Growth
index_pghero_query_stats_on_database_and_captured_at 12.2 MB 1.73 MB
pghero_query_stats_pkey 8.73 MB 1.23 MB
pghero_query_stats 73.8 MB 656 KB
pghero_space_stats 8.32 MB 48 KB
pghero_space_stats_pkey 1.92 MB 16 KB
index_pghero_space_stats_on_database_and_captured_at 2.73 MB 8 KB
searchjoy_searches 7.36 MB 8 KB
users 208 KB 8 KB
ar_internal_metadata 16 KB 0 Bytes
ar_internal_metadata_pkey 16 KB 0 Bytes
blazer_audits 8 KB 0 Bytes
blazer_audits_pkey 8 KB 0 Bytes
blazer_checks 16 KB 0 Bytes
blazer_checks_pkey 16 KB 0 Bytes
blazer_dashboard_queries 8 KB 0 Bytes
blazer_dashboard_queries_pkey 16 KB 0 Bytes
blazer_dashboards 16 KB 0 Bytes
blazer_dashboards_pkey 16 KB 0 Bytes
blazer_queries 16 KB 0 Bytes
blazer_queries_pkey 16 KB 0 Bytes
blazer_uploads 16 KB 0 Bytes
blazer_uploads_pkey 16 KB 0 Bytes
field_test_memberships 104 KB 0 Bytes
field_test_memberships_pkey 32 KB 0 Bytes
genres 0 Bytes 0 Bytes
genres_movies 0 Bytes 0 Bytes
genres_movies_movie_id_idx UNUSED 8 KB 0 Bytes
genres_movies_pkey 8 KB 0 Bytes
genres_pkey 8 KB 0 Bytes
index_blazer_audits_on_query_id UNUSED 8 KB 0 Bytes
index_blazer_audits_on_user_id UNUSED 8 KB 0 Bytes
index_blazer_checks_on_creator_id UNUSED 16 KB 0 Bytes
index_blazer_checks_on_query_id 16 KB 0 Bytes
index_blazer_dashboard_queries_on_dashboard_id UNUSED 16 KB 0 Bytes
index_blazer_dashboard_queries_on_query_id 16 KB 0 Bytes
index_blazer_dashboards_on_creator_id UNUSED 16 KB 0 Bytes
index_blazer_queries_on_creator_id UNUSED 16 KB 0 Bytes
index_blazer_uploads_on_creator_id UNUSED 16 KB 0 Bytes
index_field_test_memberships_on_experiment_and_created_at 48 KB 0 Bytes
index_field_test_memberships_on_participant 88 KB 0 Bytes
index_mailkick_subscriptions_on_subscriber_and_list 16 KB 0 Bytes
index_searchjoy_conversions_on_convertable UNUSED 344 KB 0 Bytes
index_searchjoy_conversions_on_search_id 368 KB 0 Bytes
index_searchjoy_searches_on_created_at 1.84 MB 0 Bytes
index_searchjoy_searches_on_search_type_and_created_at 2.63 MB 0 Bytes
index_searchjoy_searches_on_search_type_query 5.99 MB 0 Bytes
index_searchjoy_searches_on_user_id UNUSED 1.74 MB 0 Bytes
mailkick_subscriptions 16 KB 0 Bytes
mailkick_subscriptions_pkey 16 KB 0 Bytes
movies 0 Bytes 0 Bytes
movies_pkey 8 KB 0 Bytes
occupations 0 Bytes 0 Bytes
occupations_pkey 8 KB 0 Bytes
ratings 0 Bytes 0 Bytes
ratings_movie_id_idx UNUSED 8 KB 0 Bytes
ratings_pkey 8 KB 0 Bytes
ratings_rated_at_idx UNUSED 8 KB 0 Bytes
schema_migrations 16 KB 0 Bytes
schema_migrations_pkey 16 KB 0 Bytes
searchjoy_conversions 840 KB 0 Bytes
searchjoy_conversions_pkey 368 KB 0 Bytes
searchjoy_searches_pkey 1.86 MB 0 Bytes
users_pkey 88 KB 0 Bytes