Hi,
I have to insert 4+ million numbers into a spreadsheet. Right now I use setValue. It works, but takes hours (actually, 20+). My guess is the main reason calc redraws screen after each insert. Is it possible to disable redrawing and make refresh by request only, e.g., redraw after 1000 numbers only. It seems I saw similar question already, but cannot find it any more.
Thank you.
[Solved] How to disable screen refresh - redrawing
[Solved] How to disable screen refresh - redrawing
Last edited by ptsenter on Thu May 29, 2008 6:29 am, edited 1 time in total.
Re: How to disable screen refresh - redrawing
Every API-call costs a lot of time. Use range.setDataArray(aRows(aColumns()))
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: How to disable screen refresh - redrawing
Thank you for your suggestion - it definitely works: even on a small matrix 20x120 copying one row as a single range gives me 6 - 10 times improvement.
But it turned out we have a much bigger problem: calc cannot handle spreadsheet that huge properly - it becomes slow or completely unresponsive. We have to do some preprocessing before moving data to spreadsheet and losing some flexibility. Oh, well.
But it turned out we have a much bigger problem: calc cannot handle spreadsheet that huge properly - it becomes slow or completely unresponsive. We have to do some preprocessing before moving data to spreadsheet and losing some flexibility. Oh, well.
Re: [Solved]How to disable screen refresh - redrawing
Without knowing anything about your concrete problem. Could it be that you are implementing a database in a spreadsheet? Do you have many thousands of lookups?
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] How to disable screen refresh - redrawing
There is no database and no executable code yet, just holding numbers (double) - at the moment 3 million, in production it might go up to 15 mil.
Re: [Solved] How to disable screen refresh - redrawing
My recommendation: do not even try to use caalc for 15 mio numbers. Use base.
Re: [Solved] How to disable screen refresh - redrawing
ms777,
have you tried Base with millions of records?
I have done so with some thousands
I would use a real DBMS.
have you tried Base with millions of records?
I have done so with some thousands
I would use a real DBMS.
Re: [Solved] How to disable screen refresh - redrawing
Thank you, you saved me some time and a "killall soffice.bin"probe1 wrote:ms777,
have you tried Base with millions of records?
I have done so with some thousands
I would use a real DBMS.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice