GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Why Can't Database Tables Index Themselves? (https://gfy.com/showthread.php?t=635400)

Brujah 07-20-2006 01:53 AM

Why Can't Database Tables Index Themselves?
 
Here's a thought question for today: why can't database tables index themselves?

http://www.codinghorror.com/blog/archives/000638.html

... in a modern client-server database, the server should be aware of all the queries flowing through the system, and how much each of those queries cost. Who better to decide what needs to be indexed than the database itself?

Kimo 07-20-2006 02:13 AM

it is a mystery

Radiate 07-20-2006 12:07 PM

http://desirespace.com/filez/conspiracy.jpg

StuartD 07-20-2006 12:13 PM

Having a computer pick and choose anything is spotty at best.
I love it when a computer can make recommendations and show me things I might not have thought of otherwise, but if it just indexed itself, I might get semi ticked.... as it would likely not be exactly how I want it.

woj 07-20-2006 12:53 PM

If everything was automatic what would database experts do then?

Brujah 07-20-2006 07:09 PM

At least the Query Cache exists now, and has been a dramatic help on my db driven sites. Would be interesting for a tool to automatically suggest indexes or optimizations to the db administrator. Maybe it could parse a slow queries log or analyze 'show variables' and make recommendations.

Webby 07-20-2006 07:29 PM

Quote:

Originally Posted by Brujah
Here's a thought question for today: why can't database tables index themselves?

http://www.codinghorror.com/blog/archives/000638.html

... in a modern client-server database, the server should be aware of all the queries flowing through the system, and how much each of those queries cost. Who better to decide what needs to be indexed than the database itself?

Thinking on this Brujah and I'm lost :)

Any DB stuff I've done was auto indexed on whatever fields were defined to be indices. DB queries may be another matter, but can be ... eg on a from and to date - hit in to an indexed "from date" run the query to the "to date" and quit - ignoring all else.

Tho.. can see what you mean - that's another program to give everything sense and avoid human thought :winkwink:


All times are GMT -7. The time now is 05:11 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123