# Genie web framework. How to establish a connection pool to postgres?

**URL:** https://discourse.julialang.org/t/genie-web-framework-how-to-establish-a-connection-pool-to-postgres/54863
**Category:** New to Julia
**Created:** [February 8, 2021, 7:30pm UTC](https://discourse.julialang.org/t/genie-web-framework-how-to-establish-a-connection-pool-to-postgres/54863 "2021-02-08T19:30:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![curious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/curious/32/7629_2.png) [@curious](https://discourse.julialang.org/u/curious)
#### Post date: [February 8, 2021, 7:30pm UTC](https://discourse.julialang.org/t/genie-web-framework-how-to-establish-a-connection-pool-to-postgres/54863/1 "2021-02-08T19:30:14Z")

</div>

Hi,  
I started playing with Genie this morning. It looks great. I was wondering if someone knows how to establish a connection pool to Postgres. Do I use LibPQ.jl directly, if I don’t need an ORM, such as the SearchLight ORM? And, if so, how do I create a connection pool? If I use SearchLight, does it create a connection pool automatically? If I understand correctly, connecting on every request is not a very efficient way to do for a web app.

Thank you very much.
