Did you try
VACUUM FULL
on the original database? Rewriting all tables to optimize storage. When you use explain, please use explain(analyze, verbose, buffers, settings)
to get the whole picture, including memory usage etc.