Quantcast
Channel: Pinecone Community - Latest topics
Viewing all articles
Browse latest Browse all 738

describeIndexStats returning old data

$
0
0

Im using the describeIndexStats api to fetch a list of my namesapaces for visualization
export async function GET(req: any, res: any) {

if (req.method !== "GET") {
    res.status(405).json({ message: "Method not allowed" });
    return;
}
const test = await index.describeIndexStats()

return Response.json({ succeeded: true, data: test });

}
In this list, I had a namespace with 2000 entries. I used deleteAll and the namespace disappeared from the site. However, when using index.describeIndexStats(), the namespace is still returned. Additionally, I added 4 entries to the namespace again, and index.describeIndexStats() still reports it has 2000 entries, even though the site says it has 4.

Is there anything I should do differently?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 738

Trending Articles