且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

频繁更新小批量的CloudSearch性能

更新时间:2023-12-04 14:49:40

即使有50万个文档,索引时间也应该在30秒SLA以下,无论您如何批处理或是否批量提交.

Indexing time should be well under your 30 second SLA even with 500k docs, regardless of how or whether you batch your submissions.

我说这是基于我自己的测试,该测试使用m1.small实例类型的30万个文档索引和38个索引字段,可在不到3秒的时间内搜索到一个文档.有很多变量可能会影响您自己的情况,例如您拥有多少索引字段,实例大小等,但是我认为我的设置反映了不利的条件(具有复杂索引架构的m1.small实例),并且仍然比您的SLA快一个数量级.当然,这是传闻,但你应该没事.

I say this based on my own testing with an index of 300k docs and 38 index fields on an m1.small instance type, where it takes less than 3 seconds for a document to be searchable. There are a lot of variables that could affect your own situation, such as how many index fields you have, your instance size, etc, but I think my setup reflects the unfavorable conditions (m1.small instance with complex indexing schema) and is still an order of magnitude faster than your SLA. It's anecdotal evidence of course, but you should be fine.