Fatal error: Lost connection to MySQL server during query query: LOCK TABLES cache WRITE in /var/www/drupal.org/htdocs/includes/database.mysql.inc on line 99
I noticed in a 2 week old CVS release of 4.7 that the html tag was removed from common.inc.
Not sure why it was done but i liked the change because having it in their was screwing up php debugger. I also just read the 4.6 to 4.7 API changes post and it says it has been removed...
GREAT... except...
the 4.7 Beta 4 release has it back in.
just a file mix up or has someone decided it should now be back?
As I understood there are no flexible way for users to manage node sort order. I saw that node order is hardcoded in the SQL quries. This concernes all possible node listings.
I wonder, will there be something for this in 4.7 ? I mean some API which will help to change nodes sort order on the page. For example, to give a user two links : sort by name and sort by date ...
I'm now using Drupal 4.6 and have allready developed several modules and changed existing ones.
I'm going to upgrade to 4.7 and I wonder were there any valuable changes in 4.7 and what exactly should be redeveloped in my modules ? Why may they be NOT compatible ?
EXPLAIN SELECT DISTINCT i.sid, i.type FROM search_index i INNER JOIN node n ON n.nid = i.sid INNER JOIN users u ON n.uid = u.uid WHERE n.status = 0 AND (i.word LIKE 'search')
table
type
possible_keys
key
key_len
ref
rows
Extra
i
range
sid,word
word
50
4314
Using where; Using temporary
n
eq_ref
PRIMARY,uid,node_status_type
PRIMARY
4
i.sid
1
Using where; Distinct
u
eq_ref
PRIMARY
PRIMARY
4
n.uid
1
Using where; Using index; Distinct
EXPLAIN SELECT i.type, i.sid, SUM(i.score/t.count) AS score FROM search_index i INNER JOIN node n ON n.nid = i.sid INNER JOIN users u ON n.uid = u.uid INNER JOIN search_total t ON i.word = t.word WHERE n.status = 0 AND (i.word LIKE 'search') GROUP BY i.type, i.sid ORDER BY score DESC LIMIT 0, 10
Just tried writing a PHP script to setup Drupal database for MySQL automatically. Not sure if it works for everyone, but it works for me so far, both 4.6, and 4.7. Just unzip the file into your drupal directory and run setup.php, and it should work from there. Not the best way to do things, but hey, it works. :-)