Re: The cost of SET search_path TO - Mailing list pgsql-general

From Magnus Hagander
Subject Re: The cost of SET search_path TO
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7854@algol.sollentuna.se
Whole thread Raw
In response to The cost of SET search_path TO  (Oluwatope Akinniyi <tope.akinniyi@shepherdhill.biz>)
List pgsql-general
> Hi,
>
> I will appreciate it if anyone can educate me on the cost of
> using SET search_path TO for schemas at runtime.

AFAIK, that's quite cheap. Shouldn't be a problem.

> In
> particular, for .NET data operations where there may be high
> rate of connection/disconnection and reconnection for initial
> data fetching and subsequent updating.

You should be using connection pooling for this. I beleive npgsql
supports it just fine. That'll make a *lot* of difference on performance
in this kind of scenario.

//Magnus

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Case sensitivity
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Case sensitivity