versae / neo4j-rest-client

Object-oriented Python library to interact with Neo4j standalone REST server
http://neo4j-rest-client.rtfd.org
GNU General Public License v3.0
264 stars 73 forks source link

memory leak #114

Closed shaikatzir closed 10 years ago

shaikatzir commented 10 years ago

Ran the following code , and the heap just kept on growing ...

gdb = GraphDatabase("http://localhost:7474/db/data/")

while 1:
    results = gdb.query(query, returns=(client.Node,list))
versae commented 10 years ago

Which query are you executing?

shaikatzir commented 10 years ago

example:

    import  neo4jrestclient.client as client
from neo4jrestclient.client import GraphDatabase

gdb = GraphDatabase("http://localhost:7474/db/data/")
skip =0 
query = "MATCH (it:Item) return it skip {skip} limit 10"

while 1:
    results = gdb.query(query, returns=(client.Node),params={"skip" : skip})
    print skip
    skip+=10
    for result in results:
        res = result 
versae commented 10 years ago

Update. Still investigating.

versae commented 10 years ago

Hope this solves it.