Does Java High Level REST Client have "check if exists" operation?


(Miras) #1

I'm using Get API for now but I think this is inefficient


(David Pilato) #2

Why do you think that?


(Miras) #3

Oh,sorry,I've made a typo. I'm using Search API for now. But if I will use Get API it will change a structure of my code because I have used HEAD requests to check if exists


(David Pilato) #4

Can you explain what exactly is the problem if you still have a problem?


(Miras) #5

The problem is that when I use the Low Level Rest Client I'm retrieving data I check if record exists then another layer of program actually gets the record and, when I was rewriting my program to High Level Client, I realize that I'm getting record(with Get API) two times and it might be inefficient usage of network


(David Pilato) #6

when I was rewriting my program to High Level Client, I realize that I'm getting record(with Get API) two times

Why this? Just call the GET API once.


(system) #7

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