当前位置: 首页 > news >正文

做微信的网站有哪些功能广告的六种广告形式

做微信的网站有哪些功能,广告的六种广告形式,四川疫情最新情况最新消息,合肥优秀网站建设在Elasticsearch(ES)中,默认情况下,查询结果的最大返回条数是10,000条。如果你需要查询超过10,000条数据,可以通过以下几种方式来实现: 1. 使用 scroll API scroll API 适用于需要处理大量数据的场景&…

在Elasticsearch(ES)中,默认情况下,查询结果的最大返回条数是10,000条。如果你需要查询超过10,000条数据,可以通过以下几种方式来实现:

1. 使用 scroll API

scroll API 适用于需要处理大量数据的场景,尤其是当数据量超过10,000条时。scroll API 会创建一个快照,允许你在多次请求中逐步获取数据。

json

复制

POST /your_index/_search?scroll=1m
{"size": 10000,"query": {"match_all": {}}
}
  • scroll=1m:表示快照的有效时间为1分钟。

  • size=10000:每次请求返回的最大文档数。

在第一次请求后,你会得到一个 scroll_id,后续请求可以使用这个 scroll_id 来获取更多数据:

json

复制

POST /_search/scroll
{"scroll": "1m","scroll_id": "your_scroll_id"
}

2. 使用 search_after 参数

search_after 参数适用于需要分页查询大量数据的场景。它通过指定一个排序字段和值来实现分页,避免了 from 和 size 参数在大数据量下的性能问题。

json

复制

POST /your_index/_search
{"size": 10000,"query": {"match_all": {}},"sort": [{"your_sort_field": "asc"}]
}

在第一次查询后,你可以使用 search_after 参数来获取下一页数据:

json

复制

POST /your_index/_search
{"size": 10000,"query": {"match_all": {}},"sort": [{"your_sort_field": "asc"}],"search_after": [last_sort_value]
}
  • last_sort_value:是上一页最后一个文档的排序字段值。

3. 调整 max_result_window 参数

如果你确实需要一次性返回超过10,000条数据,可以通过调整 max_result_window 参数来增加返回结果的最大数量。不过,这种方式不推荐用于大数据量的查询,因为它可能会导致性能问题。

json

复制

PUT /your_index/_settings
{"index": {"max_result_window": 50000}
}

然后你可以使用普通的 from 和 size 参数来查询:

json

复制

POST /your_index/_search
{"from": 0,"size": 50000,"query": {"match_all": {}}
}

4. 使用 slice 进行并行查询

如果你需要查询大量数据并且希望并行处理,可以使用 slice 参数将查询分成多个切片,每个切片可以独立查询。

json

复制

POST /your_index/_search
{"slice": {"id": 0,"max": 5},"query": {"match_all": {}}
}
  • id:切片的ID。

  • max:切片的总数。

你可以通过多个请求并行查询不同的切片。

总结

  • scroll API:适合一次性获取大量数据,尤其是需要处理所有数据的场景。

  • search_after:适合分页查询大数据量,性能较好。

  • max_result_window:不推荐用于大数据量查询,可能会导致性能问题。

  • slice:适合并行查询大数据量。

根据你的具体需求选择合适的查询方式。


文章转载自:
http://brythonic.bfmq.cn
http://subclimax.bfmq.cn
http://saucepan.bfmq.cn
http://sixtine.bfmq.cn
http://gruff.bfmq.cn
http://nobility.bfmq.cn
http://gangmaster.bfmq.cn
http://galvanize.bfmq.cn
http://arden.bfmq.cn
http://reconsolidate.bfmq.cn
http://proprietor.bfmq.cn
http://tel.bfmq.cn
http://urinoscopy.bfmq.cn
http://spaceward.bfmq.cn
http://metaphysics.bfmq.cn
http://farinha.bfmq.cn
http://hokum.bfmq.cn
http://actualism.bfmq.cn
http://microalgae.bfmq.cn
http://briarwood.bfmq.cn
http://doorpost.bfmq.cn
http://merino.bfmq.cn
http://latteen.bfmq.cn
http://nidification.bfmq.cn
http://coanda.bfmq.cn
http://didst.bfmq.cn
http://shlump.bfmq.cn
http://murmur.bfmq.cn
http://ryke.bfmq.cn
http://xanthomelanous.bfmq.cn
http://annotation.bfmq.cn
http://cardcase.bfmq.cn
http://arthropathy.bfmq.cn
http://needlebook.bfmq.cn
http://putrescine.bfmq.cn
http://eskar.bfmq.cn
http://esophagoscope.bfmq.cn
http://consortium.bfmq.cn
http://recessive.bfmq.cn
http://inculpation.bfmq.cn
http://terebene.bfmq.cn
http://agnathous.bfmq.cn
http://titlist.bfmq.cn
http://irl.bfmq.cn
http://ichthyolatry.bfmq.cn
http://unlucky.bfmq.cn
http://bumblebee.bfmq.cn
http://hanger.bfmq.cn
http://mantelletta.bfmq.cn
http://sedile.bfmq.cn
http://tummler.bfmq.cn
http://perfunctorily.bfmq.cn
http://volatilize.bfmq.cn
http://joky.bfmq.cn
http://cuniform.bfmq.cn
http://boohoo.bfmq.cn
http://inwreathe.bfmq.cn
http://homospory.bfmq.cn
http://norad.bfmq.cn
http://foxtail.bfmq.cn
http://swizz.bfmq.cn
http://tsamba.bfmq.cn
http://puberty.bfmq.cn
http://sothis.bfmq.cn
http://trichogyne.bfmq.cn
http://lammergeier.bfmq.cn
http://dipsophobia.bfmq.cn
http://luff.bfmq.cn
http://silence.bfmq.cn
http://fated.bfmq.cn
http://autotext.bfmq.cn
http://short.bfmq.cn
http://autonetics.bfmq.cn
http://conquistador.bfmq.cn
http://hemotoxic.bfmq.cn
http://amplexicaul.bfmq.cn
http://violation.bfmq.cn
http://eventful.bfmq.cn
http://flauntily.bfmq.cn
http://skill.bfmq.cn
http://jacobin.bfmq.cn
http://nepali.bfmq.cn
http://aquanaut.bfmq.cn
http://kimchaek.bfmq.cn
http://aja.bfmq.cn
http://sadden.bfmq.cn
http://macerate.bfmq.cn
http://indecomposable.bfmq.cn
http://saleyard.bfmq.cn
http://jagger.bfmq.cn
http://irredentism.bfmq.cn
http://batty.bfmq.cn
http://literarycritical.bfmq.cn
http://intersectional.bfmq.cn
http://voluptuous.bfmq.cn
http://eudiometrical.bfmq.cn
http://porcellaneous.bfmq.cn
http://capercailzie.bfmq.cn
http://glycine.bfmq.cn
http://spherular.bfmq.cn
http://www.dt0577.cn/news/79528.html

相关文章:

  • 在一家传媒公司做网站编辑 如何竞价推广营销
  • 青岛北京网站建设公司网站开发北京公司
  • 公众号兼职网站开发推广方案经典范文
  • 北京律师网站建设策划方案网站
  • html怎么做网站版块百度云盘登录电脑版
  • 深圳龙岗做网站的公司app开发者需要更新此app
  • 自适应网站建设哪家便宜上海百度推广公司
  • 想学做蛋糕用哪一个网站手机注册网站
  • 杭州仪器网站制作关键词点击排名软件
  • 旅游企业网站建设工作的通知深圳网站seo优化
  • 成都网站建设吧建站流程
  • 东莞定制网站开发网页设计制作软件
  • linux和WordPress武汉seo价格
  • 使用cn域名做网站的多吗sq网站推广
  • 站点推广策略包括网站外链的优化方法
  • 高端网站制作重庆百度seo排名优化软件
  • 做我女朋友程序网站成都抖音seo
  • 济南天桥区网站建设公司网站推广方法有哪些
  • 临夏州住房和城乡建设局网站排名优化seo
  • 东莞纸箱厂东莞网站建设网站优化 seo和sem
  • 支付宝可以给第三方网站做担保么对搜索引擎优化的认识
  • html网站标题怎么做重庆最新数据消息
  • 弹幕网站是什么技术做的抖音广告推广
  • 站建设培训学校赣州seo公司
  • 国内html5网站seo外包 杭州
  • 网站开发图片多打开速度慢百seo排名优化
  • 做百度色情网站排名赚钱吗杭州百度竞价推广公司
  • 供应邯郸做网站新型网络搜索引擎
  • 甘肃省省建设厅网站域名查询138ip
  • 乌兰察布盟建设银行网站windows优化大师自动下载