<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>编程技巧 on 有趣的AI</title>
    <link>http://www.wfcoding.com/series/%E7%BC%96%E7%A8%8B%E6%8A%80%E5%B7%A7/</link>
    <description>Recent content in 编程技巧 on 有趣的AI</description>
    <generator>Hugo -- 0.164.0</generator>
    <language>zh-CN</language>
    <copyright>火云</copyright>
    <lastBuildDate>Thu, 04 Sep 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="http://www.wfcoding.com/series/%E7%BC%96%E7%A8%8B%E6%8A%80%E5%B7%A7/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>使用NetworkX查询GraphML图数据</title>
      <link>http://www.wfcoding.com/articles/theory/05/</link>
      <pubDate>Thu, 04 Sep 2025 00:00:00 +0000</pubDate>
      <guid>http://www.wfcoding.com/articles/theory/05/</guid>
      <description>&lt;p&gt;当遇到展示小规模图谱时，使用 &lt;strong&gt;Nextworkx&lt;/strong&gt; 和 &lt;strong&gt;GraphML&lt;/strong&gt; 是一种性价比很高的解决方案。&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;GraphML&lt;/strong&gt; 是通用的图数据交换格式，负责图数据的存储和跨工具共享。&lt;br&gt;
&lt;strong&gt;NetworkX&lt;/strong&gt; 是 Python 中一个强大的 网络（图）分析与操作库，它可以处理 GraphML ，还提供丰富的图算法。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;本文使用 &lt;strong&gt;Nextworkx&lt;/strong&gt; 实现查询 &lt;strong&gt;GraphML&lt;/strong&gt; 图数据的功能。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;查询根节点，支持分页&lt;/li&gt;
&lt;li&gt;查询某个节点的子图结构：即它的子节点以及子节点对应的边和下一级节点&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    <item>
      <title>使用pyHugeGraph查询HugeGraph图数据</title>
      <link>http://www.wfcoding.com/articles/theory/04/</link>
      <pubDate>Tue, 02 Sep 2025 00:00:00 +0000</pubDate>
      <guid>http://www.wfcoding.com/articles/theory/04/</guid>
      <description>&lt;p&gt;在实际项目中，我们经常会遇到类似下面的查询图数据库的需求：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;查询根节点，根节点可能有多个，需要&lt;strong&gt;分页&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;点击根节点，查询其子节点以及子节点关联的边和更下一层的子节点&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;本文使用 &lt;strong&gt;pyHugeGraph&lt;/strong&gt; 实现上述查询 &lt;strong&gt;HugeGraph&lt;/strong&gt; 图数据库的功能。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[Elasticsearch]使用search_after实现深度分页[附源码]</title>
      <link>http://www.wfcoding.com/articles/theory/02/</link>
      <pubDate>Wed, 01 Jan 2025 00:00:00 +0000</pubDate>
      <guid>http://www.wfcoding.com/articles/theory/02/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;elasticsearch&lt;/code&gt; 在使用 from + size 这种方式进行分页查询时，因为 &lt;code&gt;index.max_result_window&lt;/code&gt; 的默认值是 10K，所以当查询的文档超过第10K个文档时，会报错：Result window is too large&amp;hellip;&lt;br&gt;
当然，我们可以调整&lt;code&gt;index.max_result_window&lt;/code&gt;的大小，不过这种办法会导致查询效率降低和内存占用增加。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;本文讲述了在 &lt;code&gt;elasticsearch&lt;/code&gt; 中包含几十万乃至上百万的大数据量时，使用 &lt;code&gt;search_after&lt;/code&gt; 进行深度分页的方法。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
