Questions about HEAD /objects/{className}/{id}

Two questions.

  1. I have a list of IDs, and I want the most efficient way of checking which of those IDs exist in the database. I don’t need any information about the objects themselves.
    Is using the HEAD/objects/{className}/{id} endpoint the most efficient way to check which of them exist in the database, or is there a better method?
    (Weaviate - Vector Database)

  2. Can the Go client make this request, does it need to be a direct http call? I couldn’t find information on which of the RESTful API end-points were available on the Go client.

Hello @rich_tweed,

Welcome to our community! It’s a pleasure to have you with us, and we’re looking forward to helping you.

I see you’re trying to find the best way to check the existence of an ID for an object in Weaviate DB.

You can efficiently check for IDs either by making a HEAD API request or using clients like the GO client. Here’s a detailed explanation in our documentation

I hope this helps. Have a lovely week!