From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re:
Date: Sun, 10 Feb 2013 15:30:33 -0800
Message-ID: <51182D99.8090606@hogranch.com> (raw)
In-Reply-To: <CAFtRCcR=GcomQ-TQejE5VA3EC07iWySxs-cNL95HXVDpX6-bNQ@mail.gmail.com>
References: <CAFtRCcR=GcomQ-TQejE5VA3EC07iWySxs-cNL95HXVDpX6-bNQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2/9/2013 3:25 AM, viswam mamilla wrote:
> Iam using PostgreSQL 9.1 in my local system.when iam using this
> database with vb.net <http://vb.net; my application gets very slow
> while retriving data from database.if i used the same with access or
> SQL database its is very fast.
>
> Can i know what is the problem.Iam using ODBC Connection for postgresql.
you'd likely be better off with npgsql, which is a native .net data
provider for postgres, instead of ODBC.
>
> here iam writing one sample table in postgresql.
>
> CREATE TABLE "AppUsers"
> (
> "UserID" smallint,
> "Name" character(100),
> "EmailID" character(150),
> "Password" character(20),
> "UserRole" character(50)
> )
you realize 'character(n)' are fixed length fields? so if name is 'joe
blow', it will be padded to 100 characters with spaces? thats almost
never what you want to do. instead use varchar(100) or character
varying(100) (same thing), or just use text (no length specified), these
formats return just what you store ('joe blow' will return an 8 char
string).
--
john r pierce 37N 122W
somewhere on the middle of the left coast
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: pierce@hogranch.com
Subject: Re:
In-Reply-To: <51182D99.8090606@hogranch.com>
References: <CAFtRCcR=GcomQ-TQejE5VA3EC07iWySxs-cNL95HXVDpX6-bNQ@mail.gmail.com> <51182D99.8090606@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox