Canan Talayhan writes: > I am writing to give you an update on the progress that I have made. Great :) > I've created a temporary table named temp_package_metadata[1] and > insert a revision that already in my local database[2]. Then as you > said I've run the slow query with EXPLAIN ANALYZE. (screenshot is > attached) I may understand the slow query's working logic. > > [1]CREATE TEMPORARY TABLE temp_package_metadata (LIKE package_metadata > INCLUDING ALL) > > [2]INSERT INTO temp_package_metadata (home_page, > location_id,license_set_id,package_description_set_id, > package_synopsis_set_id) VALUES ('https://zlib.net/',9,9,2373,1407) From this I'm guessing the temp_package_metadata table has only one row. My understanding is that this table would normally have as many rows as packages in the revision of Guix being processed. It might not be possible to reproduce the slowness of the query without more rows.