How to avoid overflow of memory in the heap?

Use setInterval inside of which are selected from sqlite and write to mysql. i.e. copy from database to database. Within 20 minutes, the server is notifying the heap out of memory. How to avoid it?
setInterval(function () {

 }, 10000);
June 14th 19 at 20:12
1 answer
June 14th 19 at 20:14
fetch from sqlite and write to mysql. i.e. copy from database to database.

take a dump and impartite, where the syntax is the same. Crap do something.

He came up with the problem himself heroically trying to solve it.
I need a program which will constantly sync mysql depending on sqlite. - darrell.Kloc commented on June 14th 19 at 20:17
I suspect this program is called cron - gustave_Kertzmann52 commented on June 14th 19 at 20:20
I'd use cron, but you need to choose all columns from sqlite and also the two tables should go into one. - darrell.Kloc commented on June 14th 19 at 20:23

Find more questions by tags JavaScriptNode.js