Very slow solution import

Hi all

I’ve been importing a solution over the years into a servoy server (190 so far). It has grown to incorporate a mysql database for which I have the latest mysql driver etc…

When importing the solution, it takes ever longer to complete and is now beginning to fail (timeout I guess) although not every time. It causes problems because the database becomes unresponsive if it hasn’t imported properly.

An import can take 8-10 minutes now. Memory on the server is 256MB.

I’d be grateful for any ideas on how to speed things up…

Thanks

Bevil

Do you mean you have 190 releases? Maybe then it’s the time to do a clean import…

BTW: the time it takes to import depends on many things but of course on the size of your solution (number of forms etc). Our solution takes about 2 hours to import.

Hi Patrick

Yeah, 190 releases. Does it make a difference? I didn’t think it did.

There are about 140 forms.

The trouble is that it didn’t seem to take this long before, and the solution has always been fairly big… I have a feeling that it slowed down after adding a MySQL server to the mix, but that was a long time ago and it has just dramatically slowed down today (so far 1 hour for import) The server doesn’t seem to actually be doing anything (cpu % is low)…

Thanks

Bevil

Sometimes I have seen the repository import getting stuck in a transaction. Could you check mySql for locks?

Yeah, 190 releases. Does it make a difference? I didn’t think it did.

You can ask the Servoyans about this. But I would say it does. The repository is just a database and all elements, methods etc. have to be queried from there. The bigger the table, the longer it takes.

Ummm… 190 releases is too many.

Just export the version(s) you want to keep, delete the solution and then import. It should go much faster…

I know from experience that you should export the last release, maybe make a backup first, delete the solution and re-import.

Will definitely improve startup speed.

Excellent…

You live and you learn…

I was using it as a kudos ‘uptime’ type thing. I guess thats childish and stupid if I don’t want to wait around for an hour for an import…

I have just tried it and eureka… Thats it… <1 minute for import.

Thanks everyone…

Feel as though I’m full of stupid questions today…

Thunder:
Feel as though I’m full of stupid questions today…

There are no stupid questions, only stupid answers…

no stupid answers here…

Thanks everyone