Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

great work! can you rewrite boltdb backend to use redis? #59

Open
hiqbn opened this issue May 22, 2019 · 8 comments
Open

great work! can you rewrite boltdb backend to use redis? #59

hiqbn opened this issue May 22, 2019 · 8 comments

Comments

@hiqbn
Copy link

hiqbn commented May 22, 2019

Instead of keeping two databases of bolt and redis, possible to rewrite backend as redis? there's interface store. hope you can help

@mosuka
Copy link
Owner

mosuka commented May 23, 2019

Hi @hiqbn ,
It's an interesting idea, but now I'm working on something else.
After that, I will try to develop a plugin that supports Redis experimentally if I have time.

@hiqbn
Copy link
Author

hiqbn commented May 24, 2019

can you help start something? i will help write the redis part. i have no idea how to do the connector.

@hiqbn
Copy link
Author

hiqbn commented May 24, 2019

using it with https://github.com/yongman/tidis as backend

@mosuka
Copy link
Owner

mosuka commented May 24, 2019

Hello @hiqbn,
This is an example of Bleve storage plugin for Badger.
https://github.com/mosuka/bbadger

Please contact me when finished.
I'll add your plug-in to Blast build option.

@hiqbn
Copy link
Author

hiqbn commented May 24, 2019

i'll work on it but if u can do the initial redis connector will be best. it's good work what u have done. thx

@hiqbn
Copy link
Author

hiqbn commented May 24, 2019

I don't understand the mo store.MergeOperator

can you do a boiler plate for me to work on the rest?

@hiqbn
Copy link
Author

hiqbn commented May 25, 2019

redis does not need file to have mutex r/w lock. no idea how to write it without file accessed, i'm getting this error below:

i think it's easier modifying this
https://github.com/tukdesk/bleve-ledisdb-storage
but a few functions are missing. can you check?

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x846705]

goroutine 1 [running]:
github.com/blevesearch/bleve.(*indexImpl).Index(0x0, 0xa21101, 0x6, 0x94a3a0, 0xab4830, 0x0, 0x0)
/go/src/github.com/blevesearch/bleve/index_impl.go:245 +0x45
main.main()

@hiqbn
Copy link
Author

hiqbn commented May 26, 2019

this is the boilerplate for redis for your reference
https://github.com/mwmahlberg/bleve/tree/feature/kvredis/index/store/redis

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants