# Basic request is very slow

**URL:** https://community.pinecone.io/t/basic-request-is-very-slow/1689
**Category:** Support
**Tags:** vector-database
**Created:** [May 4, 2023, 9:22am UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689 "2023-05-04T09:22:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![maartenbelmans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/maartenbelmans/32/446_2.png) [@maartenbelmans](https://community.pinecone.io/u/maartenbelmans)
#### Post date: [May 4, 2023, 9:22am UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689/1 "2023-05-04T09:22:54Z")

</div>

Hi community and team!

I’ve subscribed to a free account to trial Pinecone. I heard good things about it so I’m keen to check it out and move to a paid tier if it fits my needs. The roadblock I am facing:

I created an index and stored 10 openAI embeddings. They each contain about 6 meta data values (one of which is the actual textual content up to 500 characters). I’m using the JavaScript API to get a similarity search out. I’m using basic code supplied in the docs:

```auto
    const pinecone = new PineconeClient();
    await pinecone.init({
        environment: process.env.PINECONE_ENV!,
        apiKey: process.env.PINECONE_KEY!,
    });

    const index = pinecone.Index("docup");
    const queryRequest = {
        vector: embedding.data.data[0].embedding,
        topK: 6,
        includeValues: false,
        includeMetadata: true,
    };
    result = await index.query({ queryRequest });

```

**Here is the issue** : executing that code takes on average `2.75 seconds`. So it seems the Pinecone API is performing very slow for me. The database location is Asia which is quite far from me, but still 2,8s seems too slow. Other vector databases give results below 1s. There is no lookup or DNS issue:

![image](https://us1.discourse-cdn.com/flex020/uploads/pinecone/original/1X/d4a61d6f04d0363e1d2b023acf2d2c656a676e74.png)

Am I missing something? Will this be solved by moving to a paid tier? Or do I need to do something else to get good performance?

---

<div class="post-metadata">

### Author: ![Jasper](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/jasper/32/4514_2.png) [@Jasper](https://community.pinecone.io/u/Jasper)
#### Post date: [May 4, 2023, 9:28am UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689/2 "2023-05-04T09:28:15Z")

</div>

Hi!

Not sure if this might be it but… when creating an index in code you can specify which metadata filed should be indexed as well (for metadata search filters etc.). Big metadata fileds like fulltext could maybe be the cause for slow searches.

If you only have 10 vectors. Maybe try destroying the index and create a new one where you only specify those metadata fields that you know you will use when filtering to be indexed and see if that solves at least some of the slowness.

Reference for creating an index: [https://docs.pinecone.io/docs/node-client#createindex](https://docs.pinecone.io/docs/node-client#createindex)

Be sure to use the `metadata_config`:  
( Configuration for the behavior of Pinecone’s internal metadata index. By default, all metadata is indexed; when metadata\_config is present, only specified metadata fields are indexed. To specify metadata fields to index, provide a JSON object of the following form: `{"indexed": ["example_metadata_field"]}`)

I think that you can not specify this if you are creating an index from the dashboard.

Hope this helps!

---

<div class="post-metadata">

### Author: ![maartenbelmans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/maartenbelmans/32/446_2.png) [@maartenbelmans](https://community.pinecone.io/u/maartenbelmans)
#### Post date: [May 4, 2023, 9:42am UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689/3 "2023-05-04T09:42:18Z")

</div>

Thanks for your suggestion! Unfortunately, that doesn’t appear to be the issue. I destroyed the index, created a new one, added 3 embeddings without any meta data. Querying those still takes about 2.7 seconds.

Furthyer info: my internet connection is fine, connecting to the API is fast, but waiting for the response (Pinecone doing its thing) unfortunately isn’t.

---

<div class="post-metadata">

### Author: ![Jasper](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/jasper/32/4514_2.png) [@Jasper](https://community.pinecone.io/u/Jasper)
#### Post date: [May 4, 2023, 10:45am UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689/4 "2023-05-04T10:45:56Z")

</div>

Eh. Too bad 😕 Can you try doing the same with Python lib and see how fast it is? (Sorry to bother you, but this peaked my interest 😅)

---

<div class="post-metadata">

### Author: ![maartenbelmans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/maartenbelmans/32/446_2.png) [@maartenbelmans](https://community.pinecone.io/u/maartenbelmans)
#### Post date: [May 4, 2023, 12:15pm UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689/5 "2023-05-04T12:15:10Z")

</div>

Not a python person here, sorry! I’ve done the exact same excersice with other SaaS services though (Supabase with pgvectr and Metal) and they both perform around 500ms.

---

<div class="post-metadata">

### Author: ![vladimirfol](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/vladimirfol/32/522_2.png) [@vladimirfol](https://community.pinecone.io/u/vladimirfol)
#### Post date: [May 12, 2023, 8:20am UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689/6 "2023-05-12T08:20:52Z")

</div>

I have the same problem. I am ready to pay for the Standard subscription, but with a 2.5sec delay, it makes absolutely no sense.

---

<div class="post-metadata">

### Author: ![vladimirfol](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/vladimirfol/32/522_2.png) [@vladimirfol](https://community.pinecone.io/u/vladimirfol)
#### Post date: [May 16, 2023, 6:45pm UTC](https://community.pinecone.io/t/basic-request-is-very-slow/1689/7 "2023-05-16T18:45:05Z")

</div>

No reply. No support. I have deactivated my account. It’s more stable to use my own Redis service with Vector Similarity Index - [Vector similarity | Redis](https://redis.io/docs/stack/search/reference/vectors/)
