Author Topic: Very long time to initialize a big sqlitedb map  (Read 1541 times)

Offline tramp20

  • Expert
  • Master of Locus
  • ****
  • Posts: 581
  • Thanked: 5 times
    • View Profile
Very long time to initialize a big sqlitedb map
« on: June 05, 2013, 12:54:53 »
Hi menion,
if I copy a big map (1-1.5 GB) to Locusmaps then at the next start of Locus (v2.12.0.4) I see a empty blank display for the next 130 seconds (stopped!) before Locus shows the last map.
The next start is much faster of course.
 I have a very fast SDCard and a 1 GHz processor.

At least I expect to see a declaring text on the screen.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Sony Xperia Z1c   Android 10
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12461
  • Thanked: 771 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Very long time to initialize a big sqlitedb map
« Reply #1 on: June 05, 2013, 15:35:58 »
hi Tramp,
  hmm this is weird. Such loading on background should happen only in case, Locus wants to start with previously used map and this map is not yet initialized. For example like when you use this map, close Locus, remove whole cache directory and start Locus again.

  is this happening to you when you for example close Locus with last active online map. Add this map to "maps" folder and start Locus again?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline tramp20

  • Expert
  • Master of Locus
  • ****
  • Posts: 581
  • Thanked: 5 times
    • View Profile
Re: AW: Very long time to initialize a big sqlitedb map
« Reply #2 on: June 05, 2013, 16:34:29 »
Quote from: "menion"
hi Tramp,...
...is this happening to you when you for example close Locus with last active online map. Add this map to "maps" folder and start Locus again?
Yes, thats correct.

edit
And I can reproduce this every time because I am downloading maps with your 10000 tiles limit
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Sony Xperia Z1c   Android 10
 

Offline tramp20

  • Expert
  • Master of Locus
  • ****
  • Posts: 581
  • Thanked: 5 times
    • View Profile
Re: Very long time to initialize a big sqlitedb map
« Reply #3 on: June 07, 2013, 05:33:53 »
Hi menion,
with 2.12.2 the initializing is terrible slow as before but I can now see in a window what Locus is doing :-)
Much better as a blank screen.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Sony Xperia Z1c   Android 10
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12461
  • Thanked: 771 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Very long time to initialize a big sqlitedb map
« Reply #4 on: June 07, 2013, 06:48:03 »
hmm it's probably not a change in 2.12.2, but the fact that map which Locus initialize, is not selected during a start

and long, yes it's possible. Most of time, it's stuck on slow database request which is unfortunately needed to compute valid bounding box for map ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download