Back to search

McGill University

Exploring views in graph database systems

Abstract

dc:description.abstract

Graph-based database systems, which use graph structures for data storage and queries, have been emerging as an interesting alternative to relational database systems for many applications. In relational systems, a view defines a sub-set of the database represented through a SQL query, and can but does not need to be materialized. A view can then later be used in other queries just like a regular table providing data and query simplicity, security, and sometimes increased performance. However, while the concept of views has been an important feature for relational database systems, we are not aware of any graph-based system supporting views. Graph based database systems have very different query languages, deal with both nodes and relationships, do not guarantee a fixed return format, and the storage of data is different from relational databases. Thus, there is no straightforward way of supporting views in a graph-based system. This thesis investigates views for graph databases and proposes several ways to declare and use views for the popular graph-based database system Neo4j. The first challenge is to define a way for views to be created and used in subsequent queries. For that, we provide a language to define and use views by extending Neo4j’s query language Cypher. We then distinguish between views that are materialized and those that are not and implement both approaches. For the latter we use an automatic query re-writing approach that integrates the view declaration query into the query that uses the view. For materialized views, we use internal node and edge identifiers specific to Neo4j, and store them within a middleware. A second challenge for materialized views is an efficient view maintenance scheme in the case of an update to the database. We use different strategies based on the components of a view and any incoming graph modification queries to evaluate whether a view should be re-evaluated or not. We evaluate the system by analyzing the cost of creating a materialized view by comparing the execution times of queries that use our view implementations vs a set of equivalent baseline queries, and by analyzing the effectiveness of our view maintenance. We categorize views according to two parameters and look for trends in performance within each category. The two approaches both return promising results, often performing better than the baseline queries. The materialized approach shows a tendency to benefit views that take a long time to create

Degree

thesis:*
Name thesis:degree_name
Master of Science
Grantor dc:publisher
McGill University
Year dc:date.issued
2021

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gu, Yu Ting
Advisor dc:contributor.advisor
  • Kemme, Bettina (Supervisor)

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
1291127397
Dc Identifier Other
hyrax:z890s042x

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Gu, Yu Ting. Exploring views in graph database systems. McGill University, 2021. https://doi.org/10.82308/2446