Thank you! What a silly mistake.
Also, in case it’s interesting for anyone else: selecting into the tables that encode relations directly in mysql seems to work well, this allows to encode relations after importing the non-relation data using lazurey’s plugin.