# How Palo Alto Networks Serves Live Device Topology from Its Warehouse with PuppyGraph

> Palo Alto Networks Device Security uses PuppyGraph to query live device topology directly from its existing relational data warehouse.

- Canonical URL: https://www.puppygraph.com/case-studies/palo-alto-networks-device-topology-puppygraph

## Summary

Palo Alto Networks Device Security gives enterprises visibility into the devices on their networks, including which devices talk to which and how risk spreads across those links. The data behind that network topology is stored as rows in a relational data warehouse. With direct SQL, each topology map became a deeply nested self-join that took 1 to 40 seconds, and the view was hard-capped at 5,000 devices. The Device Security team placed PuppyGraph over the existing warehouse tables as a graph query engine, so a single graph traversal replaces the N-way self-join and no data is copied into a separate graph store. After tuning, p95 latency was under 3 seconds at 10 queries per second with no failures. The device cap is gone, and the topology view runs a live graph query on every dashboard load, generally available across 12 regions.

## The Challenge: Graph Questions on Relational Data

Palo Alto Networks is a global cybersecurity company. Its Device Security product covers the device estate inside distributed enterprises: IoT, OT, IT and medical devices, both managed and unmanaged. Device Security discovers the devices on a network, assesses their risk through vulnerabilities, risk factors and segmentation compliance, and protects them with remediation and policy recommendations.

Much of the visibility Device Security provides is a network topology: which devices communicate with which, and how risk can spread across those connections. Device Security handles millions of devices and hundreds of millions of sessions per tenant. The data is stored as rows in a relational data warehouse, but the questions asked of it are graph questions.

Before PuppyGraph, Device Security served its topology view with direct SQL on the warehouse. In a relational model, every hop in a topology is another self-join, so one map became a deeply nested multi-join query. Each topology map took 1 to 40 seconds, and the view was hard-capped at 5,000 devices.

The team could not pre-aggregate its way around the problem. The UI lets users choose filters, groupings and time ranges, so the answers could not be computed in advance, and every query had to run live.

## The Solution: A Graph Query Engine over the Warehouse

One option was to load the data into a dedicated graph database. That would have meant ETL, a second stateful system to operate and a parallel source of truth to keep consistent. The team did not want a second system of record, so it chose to move the query instead of the data.

PuppyGraph runs as a graph query engine over the warehouse, so a topology map becomes a single graph traversal instead of an N-way self-join. It maps the existing tables to vertices and edges without ETL into a separate graph store, and it keeps an in-memory cache that refreshes on a regular cadence with the data pipeline, so reads hit a warm graph. PuppyGraph is read-only, which suits a serving dashboard and keeps the warehouse the single source of truth. The team runs one cluster per region, and every query pins the tenant ID for isolation.

A NestJS API sends Cypher queries to PuppyGraph over the Bolt protocol, which keeps the engine replaceable, and a D3 front end renders the topology view, running a live graph query each time it loads.

The queries are generated from the filters a user picks in the UI. One example finds connections between devices in different security zones within a chosen time range, follows a second edge type to the risk factors on the destination devices, and rolls up the number of peers and the total risk exposure by source device category and destination VLAN. In Cypher this is a single statement. The SQL equivalent is a multi-join with a correlated subquery.

### Getting to production with PuppyGraph

The team brought the topology view to production on an earlier PuppyGraph release. That took tuning and one product change, and PuppyGraph worked through both with the team.

Edge traversal was the main cost: communication edges cost about 10 times more than nodes. The team reshaped the workload rather than resizing the cluster: it declared edge direction in Cypher instead of traversing in both directions, decomposed one large multi-join into parallel sub-queries, and pre-computed the most costly edges offline. After tuning, p95 latency was under 3 seconds at 10 queries per second, with no failures.

The product change came from how the team updates devices. Its pipeline upserts devices in place, which that release did not support. The team deduplicated in the query while PuppyGraph added upsert support at the team's request, and duplicate devices fell to zero.

## The Result: Live Topology without a Device Cap

PuppyGraph changed the shape of the query, not where the data lives. With direct SQL, a topology map took 1 to 40 seconds and the view stopped at 5,000 devices. On PuppyGraph, the tuned system reached p95 latency under 3 seconds at 10 queries per second with no failures, and there is no device cap. The topology view runs on the same warehouse tables as before and is generally available across 12 regions.

Ling Zeng, who works on backend and data infrastructure for Device Security, draws three lessons from the rollout. First, reshape the workload before resizing the cluster: the sub-3-second p95 latency came from query shape and data layout, not from adding hardware. Second, treat read-only as a design input. It suits a serving path because the warehouse remains the one source of truth, and anything that writes should be planned around it. Third, a fast partnership matters: PuppyGraph turned around query-compatibility and logging fixes quickly and shipped features the team asked for, such as upsert support.

Next, the team plans to expand the graph model so that more of the dashboard's relationship questions are answered directly in Cypher, evaluate querying MongoDB directly without the intermediate warehouse hop, and upgrade to version 1.3 or later for blue-green deployments and automatic data retention.

## Further resources

-   [Rows and Columns Lightning Talks, Rows & Columns Summit, San Francisco, September 22, 2026 (Palo Alto Networks Device Security talk begins at 9:13)](https://www.youtube.com/watch?v=LKnNvnyryug&t=553s)
-   [Rows & Columns Summit 2026 Lightning Talk slides, Ling Zeng, Palo Alto Networks Device Security, September 22, 2026 (PPTX)](https://o6xswp5m6ilbks2z.public.blob.vercel-storage.com/uploads/ab8e18ef4ebebeddc0b3152c/53f151ac-bbcf-45b1-b5ce-1ae626bee436/ling-zeng-rowscolumns-lightning-talk-no-notes.pptx)
