Giter Club home page Giter Club logo

postgres-extensions-practice-samples's Introduction

postgres-extensions-practice-samples

Postgres extensions practice samples integrate with spring boot

Build status:

Project Status
Projects

Zombodb

Zombodb

Zombodb brings powerful text-search and analytics features to Postgres by using Elasticsearch as an index type. Its comprehensive query language and SQL functions enable new and creative ways to query your relational data.

  • Clone zombodb from source https://github.com/zombodb/zombodb.git

  • Using terminal go to clone folder

  • Config pg_config must be in your $PATH and be the binary for your target Postgres installation. Examples:

export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/10/bin"
  • Make install
make clean install
  • Go to directory /Users/uuhnaut/Library/Application\ Support/Postgres/var-10/ and add this to postgresql.conf && restart postgres
zdb.default_elasticsearch_url = 'http://localhost:9200/'

Pgroonga

Pgroonga

PGroonga is a PostgreSQL extension to use Groonga as the index.

PostgreSQL supports full text search against languages that use only alphabet and digit. It means that PostgreSQL doesn't support full text search against Japanese, Chinese and so on. You can use super fast full text search feature against all languages by installing PGroonga into your PostgreSQL!

- Run docker

cd spring-boot-pgroonga-samples && docker-compose up -d

  • Add extension to db
create extension pgroonga;
  • Create pgroonga index:
CREATE INDEX pgroonga_full_name_index ON account USING pgroonga (full_name);
  • Disable sequential scan to ensure using pgroonga index:
SET enable_seqscan = off;
  • Generate dummy data endpoint
[POST] localhost:8080/accounts
  • Query endpoint:
[GET] localhost:8080/accounts?text=Thomas

postgres-extensions-practice-samples's People

Contributors

uuhnaut69 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.