Query optimization

Index, feed.

[ Date | 2011-11-11 19:00 -0500 ]
WTF?

Somehow, I put myself in a situation where I have to use Access as front-end to a PostgreSQL database. Here are some of the SQL queries I see travelling over the network when refreshing forms:

SELECT "Id","TypeId","Name_","Description"
FROM "public"."ObjectData"
WHERE "Id" = 1036 OR "Id" = 1036 OR "Id" = 1036
   OR "Id" = 1036 OR "Id" = 1036 OR "Id" = 1036
   OR "Id" = 1036 OR "Id" = 1036 OR "Id" = 1036
   OR "Id" = 1036.

And then:

SELECT "ItemId","TypeId"
FROM "public"."ItemData"
WHERE "ItemId" = 1036 OR "ItemId" = 1036 OR "ItemId" = 1036
   OR "ItemId" = 1036 OR "ItemId" = 1036 OR "ItemId" = 1036
   OR "ItemId" = 1036 OR "ItemId" = 1036 OR "ItemId" = 1036
   OR "ItemId" = 1036.

Congratulations, Microsoft Access, on successfully avoiding redundant redundancies in your queries.

www.kurokatta.org


www.kurokatta.org

Quick links:

Photos
Montréal
Oregon
Paris
Camp info 2007
Camp Faécum 2007
--more--
Doc
Jussieu
Japanese adjectives
Muttrc
Bcc
Montréal
Couleurs LTP
French English words
Petites arnaques
--more--
Hacks
Statmail
DSC-W17 patch
Scarab: dictionnaire de Scrabble
Sigpue
Recipes
Omelette soufflée au sirop d'érable
Camembert fondu au sirop d'érable
La Mona de Tata Zineb
Cake aux bananes, au beurre de cacahuètes et aux pépites de chocolat
*