# Insert million embeddings is very slow

**URL:** <https://community.pinecone.io/t/insert-million-embeddings-is-very-slow/4213>\
**Category:** Support\
**Tags:** vector-database, embeddings\
**Created:** [January 20, 2024, 12:53pm UTC](https://community.pinecone.io/t/insert-million-embeddings-is-very-slow/4213 "2024-01-20T12:53:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miguelwon](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/miguelwon/32/1951_2.png) [@miguelwon](https://community.pinecone.io/u/miguelwon)\
**Post date:** [January 20, 2024, 12:53pm UTC](https://community.pinecone.io/t/insert-million-embeddings-is-very-slow/4213/1 "2024-01-20T12:53:38Z")

</div>

Hi,

I’m trying Pinecode for semantic search, where I have 9 million embeddings. I just created a new serverless index and started to insert in batches of 100. The problem is that tqdm is estimating a total time of more than 40 hours!

Is there a fastest way to create indexes when we are dealing with million of vectors?

I’m following the exemple given by Pinecone docs. In summary:

```auto
pc = Pinecone(api_key="xxx")
index = pc.Index("xx")
for vectors in batches:
    index.upsert(vectors=vectors, namespace="ns1")

```

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/pinecone/original/1X/d16664eba369eeee623700cf12feab5562b37eaf.jpeg) [@system](https://community.pinecone.io/u/system)\
**Post date:** [February 3, 2024, 12:53pm UTC](https://community.pinecone.io/t/insert-million-embeddings-is-very-slow/4213/2 "2024-02-03T12:53:46Z")

</div>

Closed on February 3, 2024, 12:53pm UTC

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