Thoughts for future optimasation. Long time to delete.

48 views
Skip to first unread message

Henrik in Oslo

unread,
Aug 29, 2012, 8:47:12 AM8/29/12
to mnemosyne-...@googlegroups.com
After import of 1500 txt cards I realised it would have been a good idea to manipulate them a bit more (e.g. get rid of some unnecessary numbering etc) before import. Hence: I wanted to delete 1500 cards before re-import. 
A:
1) Went to Browse cards
2) Selected the tag in question 
3) Use Ctrl A for "selct all"
4) Pushed Delete-button
Mnemosyne seemed to go to sleep, after a while (top left of screen) saying "Mnemosyne (Not responding)" 
Took a long time (did not measure) but finally Menmosyne woke up again. Approx 250 cards had been deleted, the rest were still there. 
B) 
Redid process A, same result
C) 
Redid process A with one exception: instead of "3) Use Ctrl A for "selct all" " I marked first card in list and paged down to last card, pressing Shift-key
while selecting also the last. That way all cards were selected. 
For the remaining 1000 cards Mnemosyne again seemed to go to sleep, after a while (top left of screen) saying "Mnemosyne (Not responding)" 
Took 4 minutes, then all 1000 cards had been deleted (also the tag was removed when it became empty)

My total DB is now BIG, close to 50 000 cards of which 15 000 are in daily use (the rest is txt import from Supermemo 7 that I piece by peice manipulate and bring into the Mnemosyne learning process. (Should I consider splitting it contrary to Peters general advice?)

/ Henrik 

Peter Bienstman

unread,
Aug 29, 2012, 8:49:36 AM8/29/12
to mnemosyne-...@googlegroups.com
I'll add this to my todo list for future optimisation. Not sure how far
I'll be able to optimise this, but there should at least be a progress
bar, such that you don't get the impression the program hangs.

Peter
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To unsubscribe from this group, send email to
> mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/4AFZdTcVKO4J.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Peter Bienstman
Ghent University, Dept. of Information Technology
Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium
tel: +32 9 264 34 46, fax: +32 9 264 35 93
WWW: http://photonics.intec.UGent.be
email: Peter.B...@UGent.be

Henrik in Oslo

unread,
Aug 29, 2012, 8:59:48 AM8/29/12
to mnemosyne-...@googlegroups.com
And for DB-size: Time to split :-) ?
/ H

Peter Bienstman

unread,
Aug 29, 2012, 9:00:48 AM8/29/12
to mnemosyne-...@googlegroups.com
I don't think that's the main bottleneck here.

Peter
> mnemosyne-...@googlegroups.com <javascript:>.
> > To unsubscribe from this group, send email to
> > mnemosyne-proj-u...@googlegroups.com <javascript:>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/4AFZdTcVKO4J
> <https://groups.google.com/d/msg/mnemosyne-proj-users/-/4AFZdTcVKO4J>.
> > For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
> >
> >
>
> --
> Peter Bienstman
> Ghent University, Dept. of Information Technology
> Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium
> tel: +32 9 264 34 46, fax: +32 9 264 35 93
> WWW: http://photonics.intec.UGent.be <http://photonics.intec.UGent.be>
> email: Peter.B...@UGent.be
>
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To unsubscribe from this group, send email to
> mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/o08FiW64ZCAJ.

silverbear

unread,
Aug 31, 2012, 6:14:31 AM8/31/12
to mnemosyne-...@googlegroups.com
I've also noticed that ctrl+A doesn't always select all. Barbara.

Peter Bienstman

unread,
Aug 31, 2012, 7:02:18 AM8/31/12
to mnemosyne-...@googlegroups.com
On 08/31/2012 12:14 PM, silverbear wrote:
> I've also noticed that ctrl+A doesn't always select all. Barbara.

This is a Qt issue: for speed reasons, Qt only gradually fetches lines
from the display as you request them. 'select all' (erroneously or by
design) does not select all lines in the database, but all the lines
that are currently showing. So to do a proper 'select all', you first
need to scroll manually to the very bottom of the list.

Hope this helps,

Peter
Reply all
Reply to author
Forward
0 new messages