ctdk / goiardi

A Chef server written in Go, able to run entirely in memory, with optional persistence with saving the in-memory data to disk or using MySQL or Postgres as the data storage backend. Docs: http://goiardi.readthedocs.io/en/latest/index.html
http://goiardi.gl
Apache License 2.0
280 stars 39 forks source link

Postgres node search prototype #34

Closed oker1 closed 9 years ago

oker1 commented 9 years ago

I've implemented the basic field:value search for nodes using postgres. Range/Text searches are not implemented. Since postgres does not support foobar type of wildcard searches they are converted to foo\ and filtered afterwards. The filtering only uses the searched field, so it shouldn't be too slow.

This PR is based on the refactored search PR.

ctdk commented 9 years ago

Great. I'm closing in on finishing the depsolver rewrite (it was both a bigger job than it seemed like when I started and I had other real-life stuff come up, but I wanted to do it right this time) that I've been working on in a private branch, but I should have that done and merged into the right branch soon, whereupon I can turn my attention back to this.

Thanks!

ctdk commented 9 years ago

Apologies for closing this one out too, but while I built on your postgres search work I ended up going in a different direction than this one. It gave me some ideas though, so thank you for submitting it.