Upgrade to Pro — share decks privately, control downloads, hide ads and more …

複雑な検索処理をElasticSearchで駆逐する

 複雑な検索処理をElasticSearchで駆逐する

tomoya-kamaji

July 03, 2022
Tweet

More Decks by tomoya-kamaji

Other Decks in Programming

Transcript

  1. ElasticSearch


    View full-size slide

  2. (27)



    2021/6 Another works


    2018/4 Sier


    View full-size slide

  3. ෳۀΛ͍ͨ͠ਓͱෳۀਓࡐΛొ༻͍ͨ͠اۀ༷Λͭͳ͙
    ϚονϯάϓϥοτϑΥʔϜ
    ஥հख਺ྉͳ͠ɺఆֹͰ࠾༻͠์୊

    View full-size slide

  4. ElasticSearch
    2
    ElasticSearch


    ElasticSearch

    View full-size slide

  5. Join SQL



    1 RDS

    View full-size slide

  6. 2
    -


    ex)


    - ( )




    View full-size slide

  7. ElasticSearch
    Elastic


    (and,or,not )


    View full-size slide

  8. 1 RDS
    Ϣʔβߋ৽
    3%4
    Ϣʔβݕࡧ
    Write
    Read


    - (Write)
    
 

    - (Read)

    1

    ϘτϧωοΫ

    View full-size slide

  9. Ϣʔβߋ৽ 3%4
    ఆظόον ݕࡧ͠΍͍͢ܗʹ੔ܗͯ͠σʔλΛ౤ೖ
    &MBTUJD4FBDI
    Ϣʔβݕࡧ
    Write
    Read


    2s
    0
    .
    5
    s


    1 RDS
    1 !!
    γϯϓϧʹ

    View full-size slide

  10. 2
    WHERE





    View full-size slide

  11. JE UFYU
    ΧπΦ͸αβΤͷఋ
    ( )
    ☓ ( )
    8)&3&VTFSOBNF

    View full-size slide

  12. ngram
    ex)kuromoji sudachi
    ΧπΦ͸αβΤͷఋ
    ΧπΦcαβΤcఋ
    ׍ɹcӫཐɹcఋ
    ͔͓ͭc͑͟͞c͓ͱ͏ͱ

    View full-size slide

  13. ngram
    ΧπΦ͸αβΤͷఋ
    N 2
    Χπ πΦ Φ͸ αβ βΤ Τͷ ͷఋ
    N
    1

    View full-size slide

  14. Ngram
    /HSBN ܗଶૉղੳ

    View full-size slide

  15. 1 RDS
    Ϣʔβߋ৽ 3%4
    &MBTUJD4FBD
    Ϣʔβݕࡧ
    Write
    Read
    2

    View full-size slide