DynamoDB now has real-time vector search. If data is already in DynamoDB, does this make a separate vector store unnecessary? What should I check before switching?
Does DynamoDB vector search replace a separate vector database?
Answers
It could simplify things if DynamoDB already holds the data you want to search. You might be able to avoid maintaining a separate PostgreSQL instance with pgvector just for similarity queries.
That doesn't mean PostgreSQL or another database has no reason to exist. Check whether the rest of your queries and application requirements fit DynamoDB before treating it as a replacement.
Reply to this answer
I'd want more detail on the result quality before switching. Similarity search often uses approximate algorithms, so the closest results returned may not be the exact nearest neighbors.
Check the documented behavior and test recall against a set where you know the exact results. Real-time updates and search accuracy are separate questions.
Reply to this answer
Look carefully at the pricing too. Vector search pricing isn't just the usual read and write units. Vector index writes are measured by the data written, including the vectors and any other attributes projected into the index.
Work out the search charges for your expected query volume and data processed as well. A cheap-looking rate per GB doesn't tell you the monthly bill by itself.
Reply to this answer
Not necessarily goodbye to S3 vector buckets. If the data is already in S3, keeping a workload there may be simpler. On the other hand, their limitations could make DynamoDB worth evaluating for a particular application.
Reply to this answer
I wouldn't assume this makes MongoDB obsolete either. Vector search is one feature among many, and the cost of moving an existing workload can look very different from the cost of adding search to data already in DynamoDB.
Reply to this answer
Add your answer
Answers are reviewed before publication.
6z~modfaucet_271:
And compare it with the full cost of the existing setup, not just storage. The better choice will depend a lot on the workload.