postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent...
Transcript of postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent...
![Page 1: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/1.jpg)
<
@paulmcfreely
![Page 2: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/2.jpg)
PostgresQL comme Nosql DB :
Le meilleur des deux mondes
![Page 3: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/3.jpg)
Haskell C Lang
![Page 4: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/4.jpg)
Python Ruby
![Page 5: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/5.jpg)
Rust Golang
![Page 6: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/6.jpg)
![Page 7: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/7.jpg)
![Page 8: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/8.jpg)
![Page 9: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/9.jpg)
???
![Page 10: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/10.jpg)
![Page 11: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/11.jpg)
descas,leSQLrépondra à vos besoins
99%
![Page 12: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/12.jpg)
* Liste non exhaustive
![Page 13: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/13.jpg)
Analyse des besoins
Type d’opérations / de données
Volume des données
Performances
![Page 14: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/14.jpg)
JSON & JSONB
JSONJSON classiqueEfficace pour la récupération de donnéesOpérations sont plus longue que JSONB
JSONBReprésentation JSON BinaireEfficace pour un travail plus complexePlus long pour construire représentation => Couteux en écriture
![Page 15: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/15.jpg)
![Page 16: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/16.jpg)
![Page 17: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/17.jpg)
![Page 18: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/18.jpg)
Indices JSON
General inverted Index: Efficace pour de la recherche full text
CREATE INDEX idxgin ON users USING GIN (infos);
![Page 19: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/19.jpg)
Indices JSONB
HashetBtree Indices
Importantpourvérifier l’égalité entredeux documentsJSON
![Page 20: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/20.jpg)
PerformancesSource: pg_nosql_benchmark via http://erthalion.info/
SELECT INSERT
![Page 21: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/21.jpg)
Update
![Page 22: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/22.jpg)
ORMs
ll estsouventnécessairederéécrireunecouchepourgérerleJSON
- Sérialization /Déserialization- Manipulation
![Page 23: postgres nosql paul leroux...Allow materialized views to be refreshed without blocking concurrent reads Add support for logical decoding of WAL data, to allow database changes to be](https://reader035.fdocuments.in/reader035/viewer/2022081615/5fd54cbb39fc54331d29a9f9/html5/thumbnails/23.jpg)
Le futur ?