Discussion Forum

How to improve the query speed when creating a big graph

I used ClientAPI to create the knowledgeGraph in Java.
When I create a little bigger Graph(almost 2000 person data) and I try to search the name, it seems a little slower.In other case, I insert the data one by one. and i need to check whether the instance is existing in the graph, so i search the graph using the person name. And if the name is not found, i will insert one instance. Finally, i find it get slower when the numbers of instances in graph get bigger.
I wonder that if u have similar problem and how can i improve my code. Thnaks.