Timeline for Slow attribute table loading after join table via custom plugin
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 29, 2016 at 17:08 | vote | accept | Conrado Domingo | ||
Sep 29, 2016 at 11:34 | comment | added | Conrado Domingo | the video says it all! hahahahahah! | |
Sep 29, 2016 at 11:33 | comment | added | Joseph | I think this video says it all...and most welcome :) | |
Sep 29, 2016 at 11:31 | comment | added | Conrado Domingo | well i think I figured it out.. as you can see in my script UPIN is in all caps while in my csv it should be small letters upin i changed it in the code and now it loads in an instant. :) Thank you for the support! :) hope to hear from you soon! | |
Sep 29, 2016 at 10:15 | comment | added | Joseph | It takes a few seconds thanks to the memory cache. I asked a somewhat related question here where my layers did not load both visually and the attribute table. The code was used in a plugin. I wonder why it is still slow for you...I also simplified your code a bit =) | |
Sep 29, 2016 at 10:14 | history | edited | Joseph | CC BY-SA 3.0 |
Simplified OP's code
|
Sep 28, 2016 at 12:54 | comment | added | Conrado Domingo | And how long does it take to load your attribute table with >100k features? If possible, may I look into your script? Maybe I can find something out from it.. Thank you and Godbless Sir Joseph. | |
Sep 28, 2016 at 11:43 | comment | added | Joseph |
Strange, I cannot replicate your issue and I have >100k features with about 3 dozen fields. You could try adding shp.createJoinCaches() after shp.addJoin(joinObject) .
|
|
Sep 28, 2016 at 9:43 | comment | added | Conrado Domingo | Yes sir, It is ticked in the Joins properties. | |
Sep 28, 2016 at 9:40 | comment | added | Joseph | After you type it in the python console, is the memory cache ticked in the Joins properties? | |
Sep 28, 2016 at 9:37 | comment | added | Conrado Domingo | It works in Python Console but still loading the attribute table by 8/10/15 after table join. :( | |
Sep 28, 2016 at 8:44 | comment | added | Joseph | No need to thank me for replying =). Does it work if you do it in the Python Console? | |
Sep 28, 2016 at 4:25 | comment | added | Conrado Domingo | Hi Sir Joseph, I tried adding joinObject.memoryCache = True but still with no luck.. the attribute table still loads very slow counting by 8/10/15. I tried using it thru Macro and my Custom Join Plugin. Thank you and more power. | |
Sep 28, 2016 at 4:04 | comment | added | Conrado Domingo | will try it now sir Jospeh. Thank you for replying. Godbless you. :) | |
Sep 27, 2016 at 12:21 | history | answered | Joseph | CC BY-SA 3.0 |