Download presentation
Presentation is loading. Please wait.
Published byScot Gilmore Modified over 6 years ago
1
PostgreSQL as a Document Storage for .NET applications
Konstantin Proskurdin Adver-Online
2
Sponsors
3
#sqlsatdnipro
4
Bio Web Developer 10 years of experience in IT
9 years of DB experience 8 years of web experience MSPD
5
Agenda Structured/Semi Structured data Document-oriented databases
PostgreSQL Marten
6
Structured Data Data model explicitly determines the structure of data
Schema is fixed Easy to visualize A lot of Math Ready-made query language, SQL
7
Semi-structured Data Self-describing structure
The schema can easily be changed Helps to not worry about object-relational impedance mismatch Support for nested or hierarchical data Support for lists of objects Can represent the information of some data sources that cannot be constrained by schema Flexible format for data exchange between different types of databases
8
Semi-structured Data Usage
Document storage Data exchange (Json, XML) Shared data storage …
9
Document Storage MongoDB Caché DocumentDB RavenDB PostgreSQL
10
PostgreSQL Hstore JSON HStore2 JSONB
11
JSON vs JSONB JSON: textual storage “as is” JSONB: no whitespaces
JSONB: no duplicate keys, last key wins JSONB: keys are sorted JSONB: indexes could be used
12
JSON(B) Operators -> Get JSON object field by key
->> Get JSON object field as text #> Get JSON object at specified path #>> Get JSON object at specified path as text @> Does the left JSON value contain the right JSON
13
Sample object
14
JSONB Demo
15
JSONB Indexes Expression Indexes GIN Indexes
16
JSONB Indexes Demo
17
Marten
18
Demo
19
Summary Structured/Semi Structured data Document-oriented databases
PostgreSQL Marten
20
That’s all
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.