Comments on: Indexing Really Helps http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: eddie http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-7187 Fri, 30 Nov 2007 20:23:57 +0000 http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-7187

i found this link on google, hanks nice tuts

Reply  |  Quote
]]>
By: Luke http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-938 Sat, 02 Sep 2006 00:42:42 +0000 http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-938

All my tables have primary keys, so that’s not the problem. :mrgreen: I just want to optimize the queries that do not rely on them.

Reply  |  Quote
]]>
By: Fr3d http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-936 Fri, 01 Sep 2006 20:10:28 +0000 http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-936

All tables in a database should really have either a Primary Key or an Index on one of the columns – it’s good practise and, as you found out, *really* speeds it up!

You could put a disclaimer on the page saying IE is bad and should not be used :P

Reply  |  Quote
]]>
By: Luke http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-930 Fri, 01 Sep 2006 13:50:40 +0000 http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-930

I took out that long URL from you post and made it into a link – sorry. It was breaking the layout. I need to conjure up get a line-breaking script like the slashdot lameness filter for the comments section one of these days.

Thanks for the SpreadsheetML link. I will definitely look into it. I was actually using a PHP class (sourceforge is your friend) to generate the files, but this may be a good alternative.

The AJAX thing is a good idea – thanks. But then again, I know they like to print out the big tables so I still want to give them the ability to have all the information loaded on the page at once.

Reply  |  Quote
]]>
By: Jorge http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-928 Fri, 01 Sep 2006 11:11:00 +0000 http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-928

Regarding that Excel report you are working on, you could try SpreadSheetML. I’ve been working with it lately and it’s pretty cool :-)!!!!

All you have to do is to build an XML using that schema/namespace, set the contentype right and you’re ok to go.

You can find some info on SpreadsheetML here.

Jorge

Reply  |  Quote
]]>
By: Jorge http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-927 Fri, 01 Sep 2006 10:57:34 +0000 http://www.terminally-incoherent.com/blog/2006/08/31/indexing-really-helps/#comment-927

Try AJAX! You can create a page that returns only some results (say 20 each page), and build a navigation bar with AJAX without having to post back the request to the server. Users seem to like this kind of feature and since the page won’t reload, everything seems faster.

All you have to do is build an URL that returns XML with a set of the results and parse it in Javascript.

Jorge

Reply  |  Quote
]]>