Open volodymyrko opened 2 years ago
Hi @volodymyrko
I agree there are some issues with the schema caching. This was something I implemented as I found repeated calls to the schema generated actually created a pretty significant memory leak.
I dont know what the right answer is, a couple ideas have been floated:
@volodymyrko can you check the last commit #122 (it's merged into master now). This should fix your issue.
@overbost , my tests passed successfully. thanks
Hi, can you update the pypi package to the last version to fix this issue ? Thanks
@PTank Done. @PTank @volodymyrko @overbost @SoundsSerious Please use https://github.com/kashifpk/arango-orm for the future as I no longer have push access to this repo. I'll be pushing updates to this new repo in the future.
Hi there seems be an issue with generating schema (CollectionBase.schema) for Edges/Relations with custom attributes (like
SpecializesIn
) in specific case. Here are few examples:schema
method is run forSpecializesIn
first (before any other relations) everything is fine(Pdb) self._graph.edges['studies'].schema().fields.keys() <class 'arango_orm.collections.Relation'> dict_keys([])
(Pdb) self._graph.edges['studies'].schema().fields.keys() <class 'arango_orm.collections.Relation'> dict_keys([])
(Pdb) self._graph.edges['specializes_in'].schema().fields.keys() <class 'tests.data.SpecializesIn'> dict_keys([]) # IS EMPTY