search at tokopedia
TRANSCRIPT
![Page 1: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/1.jpg)
![Page 2: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/2.jpg)
SEARCHAT TOKOPEDIA
![Page 3: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/3.jpg)
WHY SEARCH IS IMPORTANT?
![Page 4: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/4.jpg)
PREVIOUS SEARCH IN TOKOPEDIA
![Page 5: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/5.jpg)
PREVIOUS SEARCH IN TOKOPEDIA
2000 – 8000 ms / search.
145 KB content to download for each request.
Dependancy with 4 databases.
![Page 6: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/6.jpg)
PUT LOAD BALANCER
Solution #1
![Page 7: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/7.jpg)
Load Balancer
![Page 8: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/8.jpg)
Load Balancer
![Page 9: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/9.jpg)
ISOLATION
Solution #2
![Page 10: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/10.jpg)
REMOVE USELESS INDEXES
Solution #3
![Page 11: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/11.jpg)
REWRITE IN GOMADE AN API
Solution #4
![Page 12: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/12.jpg)
REMOVE DATABASES DEPENDANCY
Solution #5
![Page 13: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/13.jpg)
REMOVE DATABASES DEPENDANCY
Solution #5
![Page 14: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/14.jpg)
Solution #6DO CLIENT SIDE TEMPLATING
![Page 15: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/15.jpg)
Solution #6
![Page 16: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/16.jpg)
BEFORE AFTER
2000 – 8000 ms / search.
145 KB content to download for each request.
8 Millions index.
Dependancy with 4 databases.
6– 50 ms / search. (160 times faster)
7KB content to download for each request.(20 times smaller)
4.7 Millions index. (useless index removed, 1.7 times less)
Dependancy with 1 databases on runtime.
Result #1
![Page 17: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/17.jpg)
2000 – 8000 ms / search.
45 KB content to download for each request.
8 Millions index.
Dependancy with 4 databases.
6– 50 ms / search.
7KB content to download for each request.
4.7 Millions index. (useless index removed)
Dependancy with 1 databases on runtime.
Making Customers Deliriously Happy
![Page 18: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/18.jpg)
2000 – 8000 ms / search.
45 KB content to download for each request.
8 Millions index.
Dependancy with 4 databases.
6– 50 ms / search.
7KB content to download for each request.
4.7 Millions index. (useless index removed)
Dependancy with 1 databases on runtime.
Result #2
![Page 19: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/19.jpg)
CHALLENGES ON SEARCH
Bad search result = No body can find
anything. Index growth
Slow indexing process, More features = slowing index process
Search result is subjected
![Page 20: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/20.jpg)
FEATURES ON SEARCHAutocomplete
Spellcheck
Filtering
Sorting
![Page 21: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/21.jpg)
FUTURE SEARCH AT TOKOPEDIA Suggestion
![Page 22: Search at Tokopedia](https://reader035.vdocument.in/reader035/viewer/2022081513/587baf2c1a28ab81758b79d3/html5/thumbnails/22.jpg)
Q & A