> > My group is working to create a new set of Db standards as we embark
> > upon redesigning our new web app backend db. The other architect wants
[quoted text clipped - 15 lines]
>
> - Show quoted text -
Thank you all for your (mostly) helpful information. It would seem
that the consensus is that long table\variable\column names are no
hinderence to performance. I have to say that the only examples of
where it may become an issue are very few, and probably taken care of
in katmai, although I am not sure.
Here is what i found AGAINST long names:
1. Long names take up more room inside dynamic sql strings, forcing
authors to perform various workarounds. (not really a performance
issue, but an issue to coders anyways)
2. Longer names increase query parsing time. (probably not enough of a
bump to be noticable, but testing would be interesting, especially if
sproc has numerous recompiles).
3. XML output bloated when names used as tags.
4. Bloats data packet size when result set sent to client.
As I said, these issues are ones that I found through searching the
internet. I would be interested in hearing any feed back.
Thank you all again in advance!
toby - 20 Nov 2008 20:16 GMT
> > > My group is working to create a new set of Db standards as we embark
> > > upon redesigning our new web app backend db. The other architect wants
[quoted text clipped - 28 lines]
> bump to be noticable, but testing would be interesting, especially if
> sproc has numerous recompiles).
Not measurably.
> 3. XML output bloated when names used as tags.
> 4. Bloats data packet size when result set sent to client.
I find it impossible to believe any of this would have a measurable
impact.
Forget all speed and latency issues and focus on maintainability,
where you can really make a difference. This thread shows that micro-
optimisation is already costing you money and time!
> As I said, these issues are ones that I found through searching the
> internet. I would be interested in hearing any feed back.
> Thank you all again in advance!
Roy Hann - 20 Nov 2008 21:46 GMT
> Thank you all for your (mostly) helpful information. It would seem
> that the consensus is that long table\variable\column names are no
> hinderence to performance. I have to say that the only examples of
> where it may become an issue are very few, and probably taken care of
> in katmai, although I am not sure.
> Here is what i found AGAINST long names:
[snip]
> 2. Longer names increase query parsing time. (probably not enough of a
> bump to be noticable, but testing would be interesting, especially if
> sproc has numerous recompiles).
I will bet you a fancy dinner that the time needed for just one
additional disk I/O operation would swamp this cost. There are really
just three things to think about: lock-contention, disk I/O, and network
I/O. These are many orders of magnitude slower than parsing and
doing symbol table lookups. (In any case, backtracking to disambiguate
SQL can take a long time in the parser, as can re-writing
where-clauses in conjunctive normal form. And then there is query
optimization too.)
If you can tell me you've reduced these WAY below "good enough" then I
will agree you could spend your free time tinkering with testing the
parsing time conjecture. And then you can buy me my fancy dinner.
> 3. XML output bloated when names used as tags.
This one made me laugh out loud! Do Hummer owners worry about the
weight of the smashed bugs on the windshield decreasing their fuel
economy?
> 4. Bloats data packet size when result set sent to client.
Irrelevant. Modern networks send big packets very fast. What will
kill you is if you try to send lots of packets; big or small, doesn't
matter.
> As I said, these issues are ones that I found through searching the
> internet. I would be interested in hearing any feed back.
> Thank you all again in advance!
The overriding concern should be with maintainability and clarity.
Choose names that help rather than hinder, and if they are long, so be
it.

Signature
Roy
SELECT
Opinions_We_Will_All_Come_To_Regret.Incoherent_Blathering_Studded_With_Meaningless_Buzzwords_And_Salted_with_Enough_Jargon_To_Make_You_Feel_Inadequate
FROM Morons_Paid_Too_Much_By_Clueless_People,
Opinions_We_Will_All_Come_To_Regret,
Ideas_Which_Are_Dead_But_Manage_Like_Zombies_To_Arise_And_Eat_The_Brains_Of_The_Living
WHERE
Morons_Paid_Too_Much_By_Clueless_People.Name_Used_For_Publicity_Purposes
=
Opinions_We_Will_All_Come_To_Regret.Name_Supplied_By_Admin_Assistant_When_A_Speaking_Slot_Openned_Up
AND
Ideas_Which_Are_Dead_But_Manage_Like_Zombies_To_Arise_And_Eat_The_Brains_Of_The_Living.Term_Originally_Stolen_From_A_Distantly_Related_Discipline
IN
Opinions_We_Will_All_Come_To_Regret.The_List_Of_Things_Last_Weeks_Trade_Journals_Seemed_To_Be_Interested_In;
Roy Hann - 06 Dec 2008 08:25 GMT
> SELECT
> Opinions_We_Will_All_Come_To_Regret.Incoherent_Blathering_Studded_With_Meaningless_Buzzwords_And_Salted_with_Enough_Jargon_To_Make_You_Feel_Inadequate
[quoted text clipped - 10 lines]
> IN
> Opinions_We_Will_All_Come_To_Regret.The_List_Of_Things_Last_Weeks_Trade_Journals_Seemed_To_Be_Interested_In;
I am going to try to get someone to print that on a mug or a T-shirt!
:-)

Signature
Roy