Skip to content

insertMany reports incorrect elapsedSeconds #310

@gkampitakis

Description

@gkampitakis

Hey 👋 , while working with typescript client I noticed

 const result = await questions.data.insertMany(data);

reports a result

{
  uuids: {
    "0": "09486fe0-b849-4dc2-b3cb-45a8ed3df2e6",
    "1": "680eb098-3fd5-4cf3-8ff6-2d74d9e9dfc1",
    "2": "35b32002-dde1-409a-9780-893a868af49f",
    "3": "2efddfc7-79b6-4eb3-a773-00eec824deea",
    "4": "0a604bb5-1f22-4752-ba60-c235d05bef40",
    "5": "8ed5c1c2-281f-4e1f-aa97-28063cb9c973",
    "6": "05f8c83c-d923-4b11-ba00-49bc4ed1e588",
    "7": "06ca42ce-7674-424a-b62d-a2d4fd8f3aad",
    "8": "1ee8c3ed-153a-4745-903e-9fb89b61a992",
    "9": "d9dbbca0-648e-4684-b23c-5134e617fedf",
  },
  errors: {},
  hasErrors: false,
  allResponses: [ "09486fe0-b849-4dc2-b3cb-45a8ed3df2e6", "680eb098-3fd5-4cf3-8ff6-2d74d9e9dfc1",
    "35b32002-dde1-409a-9780-893a868af49f", "2efddfc7-79b6-4eb3-a773-00eec824deea", "0a604bb5-1f22-4752-ba60-c235d05bef40",
    "8ed5c1c2-281f-4e1f-aa97-28063cb9c973", "05f8c83c-d923-4b11-ba00-49bc4ed1e588", "06ca42ce-7674-424a-b62d-a2d4fd8f3aad",
    "1ee8c3ed-153a-4745-903e-9fb89b61a992", "d9dbbca0-648e-4684-b23c-5134e617fedf"
  ],
  elapsedSeconds: 1343,
}

with elapsedSeconds too high. Should it be reporting ms instead?

ts-client version used "weaviate-client": "^3.6.2".

I am happy to file a pr to fix this 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions