Use Jackson for JSON parsing. Only create tables if they don't exist. Use immediate transactions and precompiled statements to speed up database writes. Turn synchronous off and use memory as a temp cache. SQL table creation works much faster now.