<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Insurers score millions of locations through an API. The API isn't slow, the unit of work is wrong. in Community Articles</title>
    <link>https://community.databricks.com/t5/community-articles/insurers-score-millions-of-locations-through-an-api-the-api-isn/m-p/172597#M1817</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Insurance · Reinsurance · Banking · Telecom · Retail · Agriculture — Per-Object API Calls to Per-Cell Scoring with H3 and Native Spatial SQL&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;By &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/247254"&gt;@Phani_sannala&lt;/a&gt;, in collaboration with &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85833"&gt;@sridharplv&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Your lakehouse already holds the geometry. Why are you shipping it, one object at a time, to someone else's server?&lt;/P&gt;&lt;P&gt;Every data platform I've built has the same embarrassing bottleneck, and it is never the lakehouse.&lt;/P&gt;&lt;P&gt;The ingestion is solved. The Delta tables are clustered. The gold layer refreshes on time. Then somewhere in the middle of the pipeline sits a loop that takes each record, serialises it to JSON, posts it to an external API, waits a quarter of a second, parses the answer, and moves on to the next record. That loop is where the hours go. It is where the 2 AM pages come from. And in most cases, it is doing work your cluster could do faster without leaving the building.&lt;/P&gt;&lt;P&gt;This article is about deleting that loop — or, where you genuinely can't, shrinking it by orders of magnitude. I'll use geospatial hazard scoring as the worked example, because that's where I hit it hardest, but the pattern applies anywhere a pipeline calls an external service once per record.&lt;/P&gt;&lt;H2&gt;The problem: one object in, hundreds of rows out&lt;/H2&gt;&lt;P&gt;Strip away the industry and the pattern looks like this. You hold a large set of objects with a location — a point, or a polygon. For each one, you call an external service that knows something about that location and returns a block of enriched records. You land those records and aggregate them back to the object.&lt;/P&gt;&lt;P&gt;It shows up everywhere:&lt;/P&gt;&lt;P&gt;• Insurance and reinsurance — scoring buildings, factories, schools and public assets for flood, wildfire, windstorm and earthquake exposure under several climate scenarios.&lt;BR /&gt;• Banking — physical climate-risk disclosure on lending portfolios and secured assets.&lt;BR /&gt;• Telecom — coverage and signal-propagation scoring for every planned tower site.&lt;BR /&gt;• Retail and property — catchment demographics, visitor traffic and competitor density per store or parcel.&lt;BR /&gt;• Agriculture — soil, yield and drought indices per field boundary.&lt;BR /&gt;• Logistics — risk and ETA enrichment per route segment or depot.&lt;/P&gt;&lt;H3&gt;The worked example&lt;/H3&gt;&lt;P&gt;&lt;BR /&gt;I'll use the case I know best: climate and catastrophe hazard scoring for an insurance portfolio. Each risk object is a building, a plant, a school, a hospital — anything that can be insured. It arrives as either a point (an address) or a polygon (a site footprint).&lt;/P&gt;&lt;P&gt;The hazard API takes a coordinate and returns a full hazard cube for it: every peril (flood, coastal surge, wildfire, windstorm, earthquake, heat, drought, hail…) crossed with every climate scenario (the SSP pathways — SSP1-2.6, SSP2-4.5, SSP5-8.5 and friends) crossed with every forecast horizon. In our case that was roughly 400 records per coordinate.&lt;/P&gt;&lt;P&gt;Points are manageable. Polygons are where it detonates. The service doesn't score a polygon as one thing; it resolves the footprint into the coordinates inside it — often 1,000 to 3,000 of them for a large site — and returns 400 records for each.&lt;/P&gt;&lt;H3&gt;Do the multiplication&lt;/H3&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Input&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Coordinates sent&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Records returned&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;1,000 point objects&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1,000&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;400,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;1,000 polygon objects × 2,000 coords&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2,000,000&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;800,000,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Oct 2026 18:56:20 GMT</pubDate>
    <dc:creator>Phani_sannala</dc:creator>
    <dc:date>2026-10-10T18:56:20Z</dc:date>
    <item>
      <title>Insurers score millions of locations through an API. The API isn't slow, the unit of work is wrong.</title>
      <link>https://community.databricks.com/t5/community-articles/insurers-score-millions-of-locations-through-an-api-the-api-isn/m-p/172597#M1817</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Insurance · Reinsurance · Banking · Telecom · Retail · Agriculture — Per-Object API Calls to Per-Cell Scoring with H3 and Native Spatial SQL&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;By &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/247254"&gt;@Phani_sannala&lt;/a&gt;, in collaboration with &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85833"&gt;@sridharplv&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Your lakehouse already holds the geometry. Why are you shipping it, one object at a time, to someone else's server?&lt;/P&gt;&lt;P&gt;Every data platform I've built has the same embarrassing bottleneck, and it is never the lakehouse.&lt;/P&gt;&lt;P&gt;The ingestion is solved. The Delta tables are clustered. The gold layer refreshes on time. Then somewhere in the middle of the pipeline sits a loop that takes each record, serialises it to JSON, posts it to an external API, waits a quarter of a second, parses the answer, and moves on to the next record. That loop is where the hours go. It is where the 2 AM pages come from. And in most cases, it is doing work your cluster could do faster without leaving the building.&lt;/P&gt;&lt;P&gt;This article is about deleting that loop — or, where you genuinely can't, shrinking it by orders of magnitude. I'll use geospatial hazard scoring as the worked example, because that's where I hit it hardest, but the pattern applies anywhere a pipeline calls an external service once per record.&lt;/P&gt;&lt;H2&gt;The problem: one object in, hundreds of rows out&lt;/H2&gt;&lt;P&gt;Strip away the industry and the pattern looks like this. You hold a large set of objects with a location — a point, or a polygon. For each one, you call an external service that knows something about that location and returns a block of enriched records. You land those records and aggregate them back to the object.&lt;/P&gt;&lt;P&gt;It shows up everywhere:&lt;/P&gt;&lt;P&gt;• Insurance and reinsurance — scoring buildings, factories, schools and public assets for flood, wildfire, windstorm and earthquake exposure under several climate scenarios.&lt;BR /&gt;• Banking — physical climate-risk disclosure on lending portfolios and secured assets.&lt;BR /&gt;• Telecom — coverage and signal-propagation scoring for every planned tower site.&lt;BR /&gt;• Retail and property — catchment demographics, visitor traffic and competitor density per store or parcel.&lt;BR /&gt;• Agriculture — soil, yield and drought indices per field boundary.&lt;BR /&gt;• Logistics — risk and ETA enrichment per route segment or depot.&lt;/P&gt;&lt;H3&gt;The worked example&lt;/H3&gt;&lt;P&gt;&lt;BR /&gt;I'll use the case I know best: climate and catastrophe hazard scoring for an insurance portfolio. Each risk object is a building, a plant, a school, a hospital — anything that can be insured. It arrives as either a point (an address) or a polygon (a site footprint).&lt;/P&gt;&lt;P&gt;The hazard API takes a coordinate and returns a full hazard cube for it: every peril (flood, coastal surge, wildfire, windstorm, earthquake, heat, drought, hail…) crossed with every climate scenario (the SSP pathways — SSP1-2.6, SSP2-4.5, SSP5-8.5 and friends) crossed with every forecast horizon. In our case that was roughly 400 records per coordinate.&lt;/P&gt;&lt;P&gt;Points are manageable. Polygons are where it detonates. The service doesn't score a polygon as one thing; it resolves the footprint into the coordinates inside it — often 1,000 to 3,000 of them for a large site — and returns 400 records for each.&lt;/P&gt;&lt;H3&gt;Do the multiplication&lt;/H3&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Input&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Coordinates sent&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Records returned&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;1,000 point objects&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1,000&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;400,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;1,000 polygon objects × 2,000 coords&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2,000,000&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;800,000,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2026 18:56:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/insurers-score-millions-of-locations-through-an-api-the-api-isn/m-p/172597#M1817</guid>
      <dc:creator>Phani_sannala</dc:creator>
      <dc:date>2026-10-10T18:56:20Z</dc:date>
    </item>
  </channel>
</rss>

