Queries are slow using the javaAPI


(Lvzhihong) #1

The javaAPI query is slow, but the visual page query is quick。 It takes more than 1w milliseconds to use the API。 Only 15ms is required on the page。Anybody know why? thank you


(Avinash Jain) #2

Similar problem i am facing.


(Michel Conrado (Support Engineer)) #3

@deepak can you check this?


(Deepak Jois) #4

Ratel (the visual UI) is written using the Go client. dgraph4j (the java client) uses some external libraries to handle client server interaction using grpc. It is possible that there is some bottleneck there, that might be alleviated by tweaking some settings.

I will try and write some code similar to the example that @avi.jain7143 posted using the Go client and run some comparisions, and then debug further.


(system) #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.