-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add redix-indexer feature #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kalau misalnya value-nya bukan string gimana? (Saya gak tau di redis apakah bisa value tipenya kompleks)
Kan itu sebenernya array tapi dijadiin string separated by ";". Jadi pas retrieve nanti gak perlu di-parsing lagi manual.
Eh atau disimpen bentuk serialized / json_encoded?
Bisa sih kak Abrar, tadi sempat kepikiran untuk pakai set di redis. Jadi dalam key per trigram isinya array per id fonetik dengan isinya frekuensi muncul dan posisi itu.
|
Interesting, dengan menggunakan mode verbose dan cache dimatikan, saya coba cek dengan query shoffati wa yaqbid :
yang hash pakai
apa yang perlu di-tuning yah? 🤔 |
Ah, kayaknya si redis hash emang lambat. Meskipun saya pakai
Kalau saya pakai
dia stabil di 0.068 detik. Tapi ga jauh ya peningkatannya? 😅 |
sudah diupdate dengan index disimpan sebagai
mohon dicek 😄 |
Okay mungkin nanti perlu profiling juga biar ketahuan proses mana yang bikin lama. Summon @ariefsam juga buat lihat PR ini 😁 |
Feature related to #1