Query Complexity (big 'O')

2005-06-21 Thread Dan Bolser
Hello, I am interested in the theoretical time / space complexity of SQL queries on indexed / non-indexed data. I think I read somewhere that a JOIN on an indexed column is something like O[mn*log(mn)] (m rows joined to n). I assume without an index it is just O[m*n] Specifically I want to

Re: Query Complexity (big 'O')

2005-06-21 Thread Bastian Balthazar Bux
Dan Bolser wrote: Hello, I am interested in the theoretical time / space complexity of SQL queries on indexed / non-indexed data. I think I read somewhere that a JOIN on an indexed column is something like O[mn*log(mn)] (m rows joined to n). I assume without an index it is just

Re: Query Complexity (big 'O')

2005-06-21 Thread Jochem van Dieten
On 6/21/05, Dan Bolser wrote: I am interested in the theoretical time / space complexity of SQL queries on indexed / non-indexed data. I doubt this is the right list for theory. Specifically I want to know the complexity of a query that does a 'cross tabulation' SELECT X,

Re: Query Complexity (big 'O')

2005-06-21 Thread SGreen
Dan Bolser [EMAIL PROTECTED] wrote on 06/21/2005 09:51:06 AM: Hello, I am interested in the theoretical time / space complexity of SQL queries on indexed / non-indexed data. I think I read somewhere that a JOIN on an indexed column is something like O[mn*log(mn)] (m rows joined to n). I

RE: Query Complexity (big 'O')

2005-06-21 Thread Dathan Pattishall
It's a Big O of N. DVP Dathan Vance Pattishall http://www.friendster.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 9:39 AM To: Dan Bolser Cc: mysql@lists.mysql.com Subject: Re: Query Complexity (big 'O') Dan