Reparenting doesn't work with large number of instances

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Reparenting doesn't work with large number of instances

emir
I run the same code with N=1000 and N=10 000 where N - number of instances to create.
In the first case, reasoning works and it outputs '*Reparenting' and '*Equivalenting'. In the second case, N=10 000, it doesn't reparent and equivalent. Is it a normal behaviour? Is there any set limit?
Reply | Threaded
Open this post in threaded view
|

Re: Reparenting doesn't work with large number of instances

Jiba
Administrator
Hi,

Only changes on entities loaded in Python are shown on the console. Owlready keeps the most recent used entities in memory, but if the number of entities is too high, they are unloaded from memory (but kept in the database, thus no data is lost). In that case, "Reparenting" is not shown for these entities.

Jiba
Reply | Threaded
Open this post in threaded view
|

Re: Reparenting doesn't work with large number of instances

emir
Thank you, Jiba!