Because a Free app used too much data (more than 500 MB, of which half it was ProcessedQueueTask objects that are not being cleanup automatically), the app was bound to be removed entirely. Node cleanup. No way around it. I was forced to get the app on another node.
Mx support put me on the track of a fresh upload to a sandbox with a data snapshot. In the end I got it working. And this is what I did.
I've tried and tested quite some scenarios, but not all. One of the things that matter, is the amount of data uploaded. In the end, a data snapshot of 4MB did work. Other data snapshots of double that size seemed to work as well, but the app never got out of sleep (by the logs I could see the app was working, I never got a login page though). I would assume this is an issue that can be solved by Mx and larger data sets can be uploaded.
I did not upload any files. I do not need that very much and that complicated matters.
Here are the steps I took:
SELECT
schemaname,
tablename,
pg_size_pretty(pg_total_relation_size(schemaname || '.' || tablename)) AS total_size
FROM
pg_catalog.pg_tables
WHERE
schemaname NOT IN ('pg_catalog', 'information_schema')
ORDER BY
pg_total_relation_size(schemaname || '.' || tablename) DESC
LIMIT 10;
This is my result now.
When I started, the email table took 85 MB.
I had to try this many, many times before I succeeded. But still, so much better than typing in everything from scratch.