Making Postgres Great Again: Why We Ditched Elasticsearch in
Favor of a Postgres Solution
Colette Biervliet-Schranz
Team POW
1
2
Is Postgres good enough?
???
IDK
❖ Our use case
❖ Postgres Research and Results
❖ Looking ahead
3
Agenda
4
SDD Orders Screen
5
SDD and WHOA
6
Current Search on Orders
Things you can search for:
467144359
790356082
734724846
890267385
153858964
857894655
105735956
937485025
183649573
265037950
729473560
385620718
275936590
274650374
104836395
690376403
306429853
844377449
The possibilities are endless!
7
Search Results Example
8
The Goal
WOW!
GREAT FILTERS
AMAZING
SEARCH
COOL!
SORTING
9
Search Options
10
Filtering Options
11
Sorting Options
❖ “Small” seller has 10 orders/year
❖ “Medium” seller has 500 orders/year
❖ “Large” seller has 10,000 orders/year
12
Who is searching?
13
To elasticsearch or not to elasticsearch...
❖ Our use case
❖ Postgres Research and Results
❖ Looking ahead
14
Agenda
15
Test Data Set
❖ 50 Million orders in total
❖ 50k open orders
❖ 5 million (10%) LvB
❖ 45 million (90%) LvR
❖ 2000 sellers
❖ 10,000 products
❖ Each seller had about 25,000 orders
❖ REMEMBER: “average” seller has ~1,000/year
16
Keeping It Simple
17
REMEMBER
❖ 13 requests/second
❖ 26 requests/second
18
Results
If you’re reading this, you’ve got very good eyes! Congrats!
19
Results for Real 1
20
Results for Real 2
21
Is Postgres good enough?
22
Is Postgres good enough?
With an average response time of
141 ms, YES!
❖ Our use case
❖ Postgres Research and Results
❖ Looking ahead
23
Agenda
24
Future of WHOA
Special Thanks
To my supportive teammates !!!
25
Yay
Leon
Andrey
Eduardo
Thanks!
Til next time bol.com

Making Postgres great again - Colette Biervliet-Schranz