Latest / CyberSecurity Summary / Graph Databases: New Opportunities for Connected Data
Transcript
- 0:00Speaker 1: I want you to imagine a scenario for a second, like, really,
- 0:02Speaker 1: picture it. Think about the most valuable piece of information
- 0:06Speaker 1: in the world.
- 0:06Speaker 2: Oh man, okay, I'm guessing people are picturing like a
- 0:10Speaker 2: secret chemical formula or something.
- 0:12Speaker 1: Right exactly, or you know, a hit or bank account number,
- 0:15Speaker 1: or maybe a classified document. We always picture a specific
- 0:18Speaker 1: isolated data.
- 0:19Speaker 2: Point, yeah, a single thing in a volt exactly.
- 0:23Speaker 1: But what if? What if the most valuable piece of
- 0:26Speaker 1: information in the world isn't a single data point at all.
- 0:30Speaker 1: What if the real value, the thing that actually drives
- 0:33Speaker 1: the modern economy is the invisible lines connecting all of
- 0:37Speaker 1: those isolated data points together.
- 0:38Speaker 2: Which is wild to think about because it completely flips
- 0:41Speaker 2: how we architect our digital systems. I mean, we are
- 0:43Speaker 2: so conditioned by decades of computing to just, you know,
- 0:47Speaker 2: focus on the individual pieces of the puzzle, the rose
- 0:50Speaker 2: in a spreadsheet, yes, exactly, the rose, the documents in
- 0:54Speaker 2: a folder, and we just completely ignore the architecture of
- 0:57Speaker 2: how they all actually fit together.
- 0:59Speaker 1: And that shift in perspective is exactly what we are
- 1:02Speaker 1: exploring today. Welcome to this deep dive. Our mission today
- 1:07Speaker 1: is to explore a fascinating stack of excerpts from the
- 1:10Speaker 1: book Graph Databases, second Edition.
- 1:12Speaker 2: It's a great rate, honestly, really is.
- 1:14Speaker 1: We're going to look at how the tech giants of
- 1:17Speaker 1: the world actually model reality, why the traditional databases you
- 1:21Speaker 1: probably rely on every day are quietly failing under the
- 1:25Speaker 1: weight of modern connections, and how a three hundred year
- 1:29Speaker 1: old mathematical theory is secretly the engine running today's digital landscape.
- 1:34Speaker 2: It's a lot of ground to cover, but it's so
- 1:36Speaker 2: important it is.
- 1:37Speaker 1: Okay, let's unpack this. Yeah, where do we even begin
- 1:39Speaker 1: with mapping data like this?
- 1:41Speaker 2: Well, to really understand what a graph database is, and
- 1:44Speaker 2: you know why it was even necessary to invent one,
- 1:47Speaker 2: we kind of have to go back to nineteen ninety nine. Well,
- 1:49Speaker 2: the dot com boom exactly. We have to look at
- 1:51Speaker 2: the sheer desperation that led to its creation.
- 1:53Speaker 1: Desperation is a pretty reliable motivator for engineering breakthroughs. Right,
- 1:57Speaker 1: what was the wall they hit back in ninety nine?
- 1:59Speaker 2: So picture a twenty person startup. Everyone is working these
- 2:03Speaker 2: brutal like twenty three hour days. The founders of a
- 2:08Speaker 2: company called neofor j were building an enterprise content management application.
- 2:13Speaker 1: Okay, so managing lots of files and stuff right now.
- 2:16Speaker 2: Storing the actual content like the documents and the images,
- 2:19Speaker 2: that was fine, But their software was managing highly complex
- 2:23Speaker 2: access permissions and hierarchies.
- 2:25Speaker 1: Like who is allowed to see what file and who
- 2:28Speaker 1: their boss is.
- 2:28Speaker 2: That kind of thing exactly, and the engineering team was
- 2:31Speaker 2: spending more than half their time just fighting their relational database.
- 2:34Speaker 2: It just couldn't handle the connections between all those items.
- 2:37Speaker 2: Storing the connected data was complex and queerying it to
- 2:40Speaker 2: see who had access to what was tremendously slow.
- 2:44Speaker 1: So the bottleneck wasn't the size of the files at all.
- 2:46Speaker 1: It was the complexity of the permissions webbing them all
- 2:49Speaker 1: together precisely.
- 2:50Speaker 2: It was a complete nightmare. So out of pure frustration,
- 2:53Speaker 2: they realized they needed a system that natively embraced Eiler's
- 2:57Speaker 2: eighteenth century graph theory waits theory.
- 3:00Speaker 1: Are you talking about the seven bridges of Koenigsberg. Yes,
- 3:03Speaker 1: that's the one where he proved you couldn't cross every
- 3:06Speaker 1: bridge in the city just once, and in doing so
- 3:09Speaker 1: he realized that the actual islands didn't matter, only the
- 3:11Speaker 1: bridges connecting them.
- 3:12Speaker 2: That is the exact mathematical foundation. Yeah, Euler basically abstracted
- 3:17Speaker 2: away the physical land masses and focused entirely on the
- 3:20Speaker 2: links Wow and the neo forj founders, they wanted a
- 3:23Speaker 2: database that did exactly that. And this is a great
- 3:26Speaker 2: detail from their origin story. Actually, they literally altavistad around
- 3:30Speaker 2: the web looking for it.
- 3:31Speaker 1: Altivisdad. That is a perfect callback to the pre Google era,
- 3:36Speaker 1: just searching for highly specific database architecture, right alongside people
- 3:39Speaker 1: looking for pet food onlycos Yeah, exactly, I assume since
- 3:43Speaker 1: it was nineteen ninety nine, altivis that didn't give them
- 3:45Speaker 1: a magical solution.
- 3:46Speaker 2: They found absolutely nothing zero, So they decided to just
- 3:50Speaker 2: build one from scratch. They wanted to keep all the
- 3:52Speaker 2: reliable features of an enterprise relational database, the transactions, recoverability,
- 3:58Speaker 2: data integrity, but build bild a data model for the
- 4:00Speaker 2: twenty first century, which makes sense right, So they built
- 4:03Speaker 2: what is now known as the labeled property graph model.
- 4:07Speaker 1: Let's break down the mechanics of that model, just so
- 4:09Speaker 1: we have a clear picture if I am visualizing this
- 4:11Speaker 1: in my head. What are the actual building blocks here?
- 4:14Speaker 2: Okay? So it has four main characteristics. First, you have nodes.
- 4:18Speaker 2: These represent the entities, so the users, the documents, the
- 4:22Speaker 2: physical location.
- 4:23Speaker 1: Okay, got it. Nodes are the entities right.
- 4:25Speaker 2: Second you have relationships. These are the directed named arrows
- 4:30Speaker 2: connecting those nodes.
- 4:31Speaker 1: The bridge is essentially.
- 4:32Speaker 2: Exactly the bridges. Third, you have properties. These are simply
- 4:36Speaker 2: key value pair stored inside both the nodes and the relationships.
- 4:40Speaker 1: Wait, stored in the relationships too, yes, both.
- 4:43Speaker 2: We'll get to why that matters in a second. And finally,
- 4:46Speaker 2: you have labels, which are tags like user or order
- 4:49Speaker 2: that group specific nodes together so you can find them faster.
- 4:53Speaker 1: Okay, I want to test my understanding here because on
- 4:56Speaker 1: the surface that sounds I don't know, a bit like
- 4:59Speaker 1: a fancy new cod to paint on something we already do.
- 5:01Speaker 1: Hasse well if I am thinking about this like a
- 5:03Speaker 1: sentence structure, the nodes are the nouns the people, places,
- 5:08Speaker 1: or things, and the relationships are essentially the verbs that
- 5:12Speaker 1: give the sentence action and meaning. But isn't that just
- 5:16Speaker 1: a different way of describing a standard database joint.
- 5:19Speaker 2: What's fascinating here is that in a graph database, those verbs,
- 5:22Speaker 2: the relationships, they are first class citizens. They aren't an afterthought,
- 5:27Speaker 2: meaning what exactly. In a traditional database, you construct the
- 5:30Speaker 2: relationship at the exact moment you run the query Basically,
- 5:34Speaker 2: by matching an ID in one table to an ID
- 5:36Speaker 2: in another, you're building it on the fly, right. Okay,
- 5:39Speaker 2: But in a graph, the relationship is physically stored on
- 5:42Speaker 2: the disc as a distinct entity, and because of that,
- 5:45Speaker 2: you can add properties directly to the relationship itself. Oh
- 5:48Speaker 2: I see, Yeah, so you don't just know that Alice
- 5:50Speaker 2: bought an item. The relationship itself holds the metadata like
- 5:54Speaker 2: when she bought it, what the discount code was, the
- 5:57Speaker 2: delivery method.
- 5:58Speaker 1: So the connection holds just as much data as the
- 6:00Speaker 1: entities it connects. That's crazy. Yeah, but if we are
- 6:04Speaker 1: tracking every single interaction as a distinct, data rich verb,
- 6:09Speaker 1: that architecture must be incredibly demand.
- 6:11Speaker 2: It definitely changes how you manage resources.
- 6:13Speaker 1: Yeah, how does this actually fit into a real world
- 6:16Speaker 1: tech stack? I mean, are we talking about a system
- 6:19Speaker 1: sitting directly behind the buy button on a website or
- 6:22Speaker 1: is this something massive crunching analytics overnight.
- 6:25Speaker 2: It actually splits into two distinct categories, and distinguishing between
- 6:29Speaker 2: them is crucial. On one side, you have graph databases.
- 6:33Speaker 2: These are your OLTP systems online transactional processing. They are
- 6:38Speaker 2: designed for real time, highly available transactions accessed directly by your.
- 6:42Speaker 1: Application, so they handle that split second moment when you
- 6:44Speaker 1: click by yes exactly. And what about the analytics side.
- 6:47Speaker 2: Those are graph compute engines. These are your OLAP systems
- 6:51Speaker 2: online analytical processing. Think of tools like Google's pregl or cassivary.
- 6:56Speaker 2: They are built for offline batch processing. They're designed to
- 6:59Speaker 2: add or massive sweeping questions like scanning an entire social
- 7:04Speaker 2: network to find the average number of friends of every
- 7:07Speaker 2: single user globally.
- 7:09Speaker 1: Oh wow, Okay, so the compute engine isn't running the
- 7:11Speaker 1: data day application at all. It sounds like it needs
- 7:13Speaker 1: to pull that data from somewhere else to do the
- 7:15Speaker 1: heavy lifting it does.
- 7:17Speaker 2: Typically, a compute engine pulls data from a system of record,
- 7:20Speaker 2: which could be a traditional database or a graph database,
- 7:23Speaker 2: using an ETL.
- 7:24Speaker 1: Job extract transform loads exactly.
- 7:27Speaker 2: It moves the data, over runs those massive global algorithms
- 7:31Speaker 2: without slowing down the live website, and then returns the results.
- 7:35Speaker 1: That make a lot of sense.
- 7:36Speaker 2: But regardless of whether you are doing real time transactions
- 7:39Speaker 2: or offline batch processing, the true power comes down to
- 7:43Speaker 2: a structural concept called index free adjacency. This is the
- 7:47Speaker 2: dividing line between native and non native graph processing.
- 7:51Speaker 1: Let's unpack index free adjacency, because that sounds like heavy
- 7:53Speaker 1: computer science jargon.
- 7:55Speaker 2: It is a bit yeah if.
- 7:56Speaker 1: I'm translating this is this basically the difference between having
- 7:59Speaker 1: your best friend's phone number memorized in your head versus
- 8:02Speaker 1: having to look their name up in a giant physical
- 8:05Speaker 1: phone book every single time you want to call them.
- 8:07Speaker 2: That analogy hits the underlying mechanism perfectly. In a non
- 8:11Speaker 2: native system, the database might look like a graph on
- 8:14Speaker 2: your screen, but underneath it is still consulting a massive
- 8:18Speaker 2: index the phone book right, the phone book every time
- 8:21Speaker 2: it needs to find a connected node. That look up
- 8:23Speaker 2: takes processing time. But with native index free adjacency, the
- 8:28Speaker 2: relationships are real physical memory pointers.
- 8:32Speaker 1: So it just knows exactly where to go.
- 8:34Speaker 2: Yes, the node for Alice literally contains the exact memory
- 8:37Speaker 2: address for the node of her purchase. The database doesn't
- 8:40Speaker 2: search for it, it just goes directly to it.
- 8:42Speaker 1: That memory pointer concept is critical. But this brings up
- 8:46Speaker 1: a massive pragmatic question. Companies already have massive clusters of
- 8:50Speaker 1: relational databases like SQL or the new or Nosequel systems.
- 8:54Speaker 1: They have spent millions engineering them. So if I am
- 8:58Speaker 1: a CTO listening to this, So why can't I just use
- 9:00Speaker 1: the systems I already have to map these relationships.
- 9:04Speaker 2: Simply because relational databases, despite the name relational, are structurally
- 9:09Speaker 2: terrible at handling rich relationships.
- 9:11Speaker 1: Which is incredibly ironic, it really is.
- 9:14Speaker 2: The relational model forces you into a rigid, tabular forms
- 9:18Speaker 2: based structure. When your data is highly connected. You end
- 9:22Speaker 2: up having to create massive join tables just to map
- 9:25Speaker 2: which row in table A relates to which row and table.
- 9:28Speaker 1: B right, and as the data set scales, those joins
- 9:31Speaker 1: become a mathematical nightmare. You are essentially asking the database
- 9:35Speaker 1: to compute the Cartesian product of two massive lists and
- 9:39Speaker 1: filter out the matches.
- 9:40Speaker 2: Yes, exactly.
- 9:41Speaker 1: Plus if a user doesn't have a certain attribute, you
- 9:43Speaker 1: end up with columns full of null values, taking up
- 9:46Speaker 1: space and complicating the Coke exactly.
- 9:48Speaker 2: The rise in connectedness translates directly into increased joins, and
- 9:51Speaker 2: in SQL, joins exponentially destroyed performance.
- 9:54Speaker 1: Okay, so SQL struggles, But the tech industry's answer to
- 9:57Speaker 1: that over the last decade was no sequel. We move
- 10:00Speaker 1: to aggregate stores, document stores, key value stores precisely to
- 10:04Speaker 1: get away from rigid tables. Don't document stores solve this.
- 10:08Speaker 2: They solve the schema rigidity, sure, but they are actually
- 10:12Speaker 2: worse for connected data, really worse. Yeah.
- 10:15Speaker 1: No.
- 10:15Speaker 2: Single databases are brilliant at storing massive sets of disconnected documents,
- 10:20Speaker 2: but the database itself is entirely blind to any connections
- 10:24Speaker 2: between them. Ohis, to fake a relationship in no SQL,
- 10:27Speaker 2: you have to embed foreign keys, literally typing the ID
- 10:31Speaker 2: of document B inside document A. But the database doesn't
- 10:35Speaker 2: know what that ID points to. It just sees a
- 10:37Speaker 2: string of text.
- 10:38Speaker 1: So it's basically dumb text.
- 10:39Speaker 2: Right. Your application's code has to do the heavy lifting
- 10:42Speaker 2: of pulling document A, reading the ID, and then asking
- 10:46Speaker 2: the database for document.
- 10:47Speaker 1: B, which introduces the performance killer you mentioned earlier. If
- 10:51Speaker 1: I want to reverse lookups, say I am looking at
- 10:53Speaker 1: a specific document for strawberry ice cream and I want
- 10:56Speaker 1: to know every user who bought it, the document store
- 10:59Speaker 1: has no better backward pointing links.
- 11:01Speaker 2: None at all. In computer science terms, this is described
- 11:03Speaker 2: using big O notation because there are no backward pointers.
- 11:07Speaker 2: Finding who bought that ice cream requires an O of
- 11:09Speaker 2: N operation.
- 11:10Speaker 1: And the ND represents the number of items.
- 11:12Speaker 2: Right, yeah, right. It means the database has to do
- 11:14Speaker 2: a brute force scan of every single document in the
- 11:17Speaker 2: entire system to see if it contains that ice cream's ID.
- 11:20Speaker 1: That's agonizingly slow. Even some of the highly distributed stores
- 11:24Speaker 1: that try to map relationships still struggle with this. Right,
- 11:28Speaker 1: the sources mentioned systems like react which use one way links.
- 11:32Speaker 2: Yeah, reac is a good example.
- 11:33Speaker 1: But to query those links backward, they have to run
- 11:37Speaker 1: latent map produce jobs. And a map produced job isn't
- 11:40Speaker 1: a quick lookup. It's a heavy batch process that filters
- 11:43Speaker 1: data across multiple servers, shuffles it, and aggregates it. You
- 11:47Speaker 1: can't use a map reduced job to recommend a product
- 11:50Speaker 1: while a customer is waiting on a checkout page.
- 11:52Speaker 2: You absolutely cannot. The latency is just way too high.
- 11:55Speaker 1: I think here's where it gets really interesting, because a
- 11:57Speaker 1: clever engineer listening might just say, we'll find the database
- 12:01Speaker 1: doesn't do it automatically. I will just build my own
- 12:03Speaker 1: reverse indexes in the no SQL database.
- 12:06Speaker 2: Oh, people try that all the time, right.
- 12:08Speaker 1: They think, every time I write a purchase, I will
- 12:10Speaker 1: manually add a backward link to the user. Does that
- 12:13Speaker 1: solve it?
- 12:13Speaker 2: This raises an important question about the true cost of
- 12:16Speaker 2: distributed systems. Yes, you can denormalize your data and manually
- 12:22Speaker 2: maintain backward links in your application code, but you trigger
- 12:26Speaker 2: a synchronization.
- 12:27Speaker 1: Nightmare because there's too many moving parts.
- 12:29Speaker 2: Exactly, you immediately increase your right latency because every action
- 12:33Speaker 2: now requires updating multiple separate documents simultaneously.
- 12:38Speaker 1: And if the server blinks or crashes right between updating
- 12:41Speaker 1: the ice Cream document and the user document, they are
- 12:43Speaker 1: out of sync.
- 12:44Speaker 2: And that creates what we call dangling references.
- 12:47Speaker 1: Dangling references right.
- 12:49Speaker 2: The user's document points to a purchase that the ice
- 12:51Speaker 2: Cream document doesn't even acknowledge exists. Over time, those dangling
- 12:56Speaker 2: references compound, harming data quality and forcing you to write
- 12:59Speaker 2: even more code just to verify if the links are
- 13:02Speaker 2: still valid before you use them.
- 13:04Speaker 1: It sounds exhausting. So the theory is clear, SQL chokes
- 13:07Speaker 1: on joins and no SQL pushes all the relational processing
- 13:10Speaker 1: onto the application code, causing sync issues. But how does
- 13:14Speaker 1: this actually play out when we put these databases head
- 13:16Speaker 1: to head on a server.
- 13:18Speaker 2: Well, the book neo Forge in Action details a brilliant
- 13:21Speaker 2: experiment by authors Partner and vukotec Oh.
- 13:23Speaker 1: I love this part.
- 13:24Speaker 2: It's so revealing. Right, they set up a concrete head
- 13:27Speaker 2: to head test between a highly tuned relational database and NEOFG.
- 13:31Speaker 2: They modeled a standard social network one million people and
- 13:35Speaker 2: gave each person approximately fifty.
- 13:37Speaker 1: Friends, so one million nodes fifty million relationships. That is
- 13:41Speaker 1: a very standard, realistic data set for a modern application.
- 13:45Speaker 1: What was the actual test?
- 13:47Speaker 2: They asked both databases to find friends of friends at
- 13:49Speaker 2: increasing depths, basically expanding the network outward to see who
- 13:53Speaker 2: knows whom?
- 13:53Speaker 1: Okay, standard networking query, yeah.
- 13:56Speaker 2: So at a depth of two just your immediate friends friends,
- 13:58Speaker 2: Both systems performed perfectly. The relational database took point zero
- 14:02Speaker 2: one six seconds and neofour j took point zero one seconds.
- 14:06Speaker 2: To an end user, that difference is imperceptible.
- 14:08Speaker 1: Okay, so tie game at the shallow end of the pool.
- 14:10Speaker 2: But then they went to depth three friends of friends
- 14:12Speaker 2: of friends, the relational database had to compute massive multi
- 14:16Speaker 2: table joints. It took thirty seconds to run the.
- 14:18Speaker 1: Query Wow, thirty seconds.
- 14:20Speaker 2: Yeah, NEO four j using those native memory pointers took
- 14:23Speaker 2: point one six to eight seconds.
- 14:25Speaker 1: Thirty seconds versus a fraction of a second. If a
- 14:28Speaker 1: web page takes thirty seconds to load a people you
- 14:31Speaker 1: may know widget, the user has already refreshed the page
- 14:34Speaker 1: or left the site entirely.
- 14:35Speaker 2: Absolutely, and the math only gets more unforgiving from there.
- 14:39Speaker 2: At depth four, the relational database took a staggering fifteen
- 14:42Speaker 2: hundred and forty three seconds. Neofour j took one point
- 14:46Speaker 2: three seconds.
- 14:47Speaker 1: That is insane, and when.
- 14:48Speaker 2: They pushed it to depth five, the relational database literally choked.
- 14:52Speaker 2: It threw an error and couldn't even finish the query.
- 14:55Speaker 2: Neofour j traversed the entire five deep network in about
- 14:58Speaker 2: two seconds.
- 14:59Speaker 1: We really need to pop on that number. Fifteen hundred
- 15:01Speaker 1: and forty three seconds is over twenty five minutes. If
- 15:04Speaker 1: you have to wait twenty five minutes for your architecture
- 15:06Speaker 1: to realize that two people are loosely connected, your business
- 15:09Speaker 1: operates in the past completely. If I'm running a modern business,
- 15:12Speaker 1: the agility of one point three second query changes the
- 15:15Speaker 1: fundamental nature of what I can offer the customer.
- 15:18Speaker 2: It allows you to shift from historical analytics to real
- 15:21Speaker 2: time recommendation engines. Let's map out a retail scenario.
- 15:24Speaker 1: Okay, let's hear it.
- 15:25Speaker 2: You have a user, Alice. She just puts strawberry ice
- 15:28Speaker 2: cream in her cart because you have a graph database.
- 15:31Speaker 2: You don't just see the ice cream. You instantly traverse
- 15:33Speaker 2: the memory pointers to find every other user who bought
- 15:36Speaker 2: that ice cream in the last month. Right then you
- 15:38Speaker 2: traverse outward again to see what else they bought. The
- 15:41Speaker 2: database detects a pattern. People who buy this ice cream
- 15:45Speaker 2: frequently buy a specific brand of espressobeans, and crucially, they
- 15:49Speaker 2: strongly dislike Brussels sprouts.
- 15:52Speaker 1: And because that traversal took two seconds instead of twenty
- 15:55Speaker 1: five minutes, you can cross reference those habits and recommend
- 15:59Speaker 1: the Espresso means to Alice right there on the checkout page,
- 16:02Speaker 1: before she even reaches for her credit card exactly.
- 16:05Speaker 2: And it is not just shopping behavior either. We see
- 16:08Speaker 2: this heavily utilized in geospatial data too. You can model
- 16:11Speaker 2: physical locations as graphs using spatial indexing structures called R trees.
- 16:16Speaker 1: Explain how R tree works in a graph context, just briefly.
- 16:19Speaker 2: Sure, think of an R tree as a hierarchy of
- 16:22Speaker 2: bounding boxes. You draw a massive virtual box around the UK.
- 16:26Speaker 2: Inside that, a smaller box around London. Inside that, an
- 16:29Speaker 2: even smaller box for the Battersea neighborhood, down to a
- 16:32Speaker 2: specific postal code.
- 16:33Speaker 1: Okay, Russian nesting dolls. Basically yep.
- 16:36Speaker 2: Because a graph database natively understands hierarchies, it can traverse
- 16:40Speaker 2: those bounding boxes instantly. If someone is standing in Battersea
- 16:44Speaker 2: with their phone, you can do hyper targeted real time
- 16:47Speaker 2: insights based on their exact coordinates. Or you can use
- 16:51Speaker 2: those rapid traversals to detect fraudulent purchasing pattern right.
- 16:54Speaker 1: Because fraud isn't usually an isolated event, it is a
- 16:57Speaker 1: network of shared IP addresses. Stolen device is rapid transaction.
- 17:01Speaker 2: Exactly.
- 17:01Speaker 1: If you could traverse that network in milliseconds, you can
- 17:04Speaker 1: decline the transaction before the bank even clears it. The
- 17:06Speaker 1: power is just undeniable. But here is the final piece
- 17:10Speaker 1: of the puzzle. I am struggling with what's up. If
- 17:12Speaker 1: this architecture is so completely different from relational tables, how
- 17:16Speaker 1: do we actually talk to it? I am obviously not
- 17:18Speaker 1: writing a seql select statement to traverse a bounding box.
- 17:21Speaker 1: Do I need a PhD in graph theory to query this?
- 17:24Speaker 2: Not at all. There is an entire landscape of graph
- 17:27Speaker 2: query languages out there. You have things like spark real,
- 17:30Speaker 2: which is heavily used in academic data, and an imperative
- 17:34Speaker 2: language called Gremlin, which gives you very low level control.
- 17:38Speaker 2: But the absolute industry standard for property graphs is a
- 17:42Speaker 2: language called Cipher. It is a declarative pattern matching language
- 17:46Speaker 2: explicitly designed to be read by humans, not just engineers,
- 17:49Speaker 2: but business stakeholders too.
- 17:51Speaker 1: Wait, if it is not a massive block of SEQL
- 17:55Speaker 1: joy in statements, what does the syntax actually look like?
- 17:58Speaker 1: Am I writing something that looks like Python?
- 18:00Speaker 2: No, you are essentially writing askart ass Yard.
- 18:03Speaker 1: You're kidding.
- 18:03Speaker 2: No, Really, think about how we solve problems in the
- 18:05Speaker 2: real world. When developers and product managers sit in a meeting,
- 18:09Speaker 2: they go to a whiteboard. They intuitively draw a circle
- 18:13Speaker 2: for a user, a circle for an order, and they
- 18:15Speaker 2: draw a hard line with an arrow connecting those.
- 18:18Speaker 1: Sure we all do that.
- 18:18Speaker 2: Cipher was built on the premise that you should be
- 18:20Speaker 2: able to type those exact visual patterns directly into the database.
- 18:24Speaker 1: So I am literally drawing arrows with dashes and greater
- 18:27Speaker 1: than signs on my keyboard.
- 18:28Speaker 2: You literally are in cipher. You put parentheses around a
- 18:33Speaker 2: word to represent a circular node. You use a couple
- 18:36Speaker 2: of dashes and a greater than sign to draw an arrow,
- 18:39Speaker 2: and you put square brackets in the middle of the
- 18:42Speaker 2: arrow to specify the relationship.
- 18:44Speaker 1: That is amazing.
- 18:45Speaker 2: You are literally telling the database engine search the data
- 18:48Speaker 2: and return anything that looks like this picture.
- 18:51Speaker 1: That is wild. It completely removes the semantic dissonance. I mean,
- 18:55Speaker 1: in a traditional setup, you draw the elegant whiteboard diagram,
- 19:00Speaker 1: and then the engineers have to go translate that beautiful
- 19:03Speaker 1: concept into a brutal, abstracted series of database schemas and foreign.
- 19:08Speaker 2: Keys exactly, and so much gets lost in translation.
- 19:10Speaker 1: With cipher, the whiteboard drawing is the code.
- 19:13Speaker 2: If we connect this to the bigger picture, that whiteboard
- 19:15Speaker 2: friendliness is exactly what makes graph database is so highly agile.
- 19:19Speaker 1: Ohso well.
- 19:20Speaker 2: In traditional sequel you have to rigorously define your rigid
- 19:23Speaker 2: tables up front, ironically, at the very beginning of a project,
- 19:26Speaker 2: when you know the least about our data.
- 19:28Speaker 1: Oh man, yeah, the worst time to make permanent decisions, right, And.
- 19:32Speaker 2: If the business model changes a year later, migrating that
- 19:35Speaker 2: rigid schema is a terrifying, error prone nightmare.
- 19:39Speaker 1: Because a graph is essentially just a collection of connected dots,
- 19:43Speaker 1: it is naturally additive.
- 19:44Speaker 2: Exactly, if you launch a new product line, you just
- 19:47Speaker 2: add new nodes, new labels, and new arrows. You don't
- 19:50Speaker 2: have to rebuild the existing structure. The database evolves at
- 19:55Speaker 2: the exact speed of the business's changing needs, rather than
- 19:58Speaker 2: forcing the business to confor to rigid data tables.
- 20:01Speaker 1: So what does this all mean? Let's bring this all
- 20:03Speaker 1: together for you listening. We live in a world defined
- 20:06Speaker 1: by its connectedness. Storing modern, highly interrelated data in isolated,
- 20:10Speaker 1: disconnected tables or separate documents is just a massive missed opportunity.
- 20:15Speaker 2: It really is holding businesses back.
- 20:16Speaker 1: It forces your application codes to the heavy lifting of
- 20:19Speaker 1: faking relationships, which destroys performance and creates synchronization errors. Graph
- 20:24Speaker 1: databases solve this by treating the relationship as the most
- 20:26Speaker 1: vital part.
- 20:27Speaker 2: Of the data, first class citizens right.
- 20:29Speaker 1: By using memory pointers to achieve index free adjacency. They
- 20:33Speaker 1: allow you to query friends of friends of friends in milliseconds,
- 20:37Speaker 1: completely bypassing the massive compute times that cripple traditional.
- 20:40Speaker 2: Systems, and that speed and flexibility unlock capabilities we simply
- 20:44Speaker 2: couldn't access before. In real time, it ships businesses from
- 20:48Speaker 2: just looking at historical reports to actually predicting behavior in
- 20:52Speaker 2: the moment, whether that is stopping fraud or providing highly
- 20:56Speaker 2: nuanced product recommendations, which.
- 20:58Speaker 1: Leads me with the final thought, I want you to
- 20:59Speaker 1: moldup over. We've talked a lot about how graph databases
- 21:03Speaker 1: map out these massive extended networks to predict what you
- 21:06Speaker 1: will buy or who you might want to befriend. They
- 21:09Speaker 1: act on patterns that might be five or six degrees
- 21:12Speaker 1: separated from you, often predicting your behavior before you even
- 21:15Speaker 1: realize what you want.
- 21:16Speaker 2: Yeah, it's a little spooky, it is.
- 21:17Speaker 1: It makes you wonder, as these systems get faster and
- 21:20Speaker 1: more natively connected, how much of our daily behavior is
- 21:23Speaker 1: truly independent free will, and how much is just a
- 21:26Speaker 1: highly predictable path in a massive digital graph waiting to
- 21:30Speaker 1: be traversed. Think about those invisible lines connecting the data points,
- 21:35Speaker 1: because chances are you are standing on one of them
- 21:37Speaker 1: right now. Thank you so much for joining us on
- 21:39Speaker 1: this deep dive. We'll catch you an next TI