Visualizzazione dei risultati da 1 a 7 su 7

Discussione: Errore query complessa

  1. #1

    Errore query complessa

    Ho questo errore e non capisco perche
    codice:
    SELECT 
                        
    
                        e.id,
                        e.title,
                        e.timestamp,
                        e.comments,
                        e.exflag,
                        e.authorid,
                        e.trackbacks,
                        e.isdraft,
                        e.allow_comments,
                        e.last_modified,
    
                        a.realname AS author,
                        a.email
    
                        , e.body, e.extended
                        
                    FROM
                        serendipity_entries AS e
                        LEFT JOIN serendipity_authors a
                            ON e.authorid = a.authorid
                        LEFT JOIN serendipity_entrycat ec
                            ON e.id = ec.entryid
                        LEFT JOIN serendipity_category c
                            ON ec.categoryid = c.categoryid
                         LEFT JOIN serendipity_authorgroups AS acl_a
                                       ON acl_a.authorid = 0
                                LEFT JOIN serendipity_access AS acl_acc
                                       ON (    acl_acc.artifact_mode = 'read' 
                                           AND acl_acc.artifact_type = 'category'
                                           AND acl_acc.artifact_id   = c.categoryid 
                                          )
                        WHERE isdraft = 'false' AND e.timestamp <= '1136401878' AND     (
                                     c.categoryid IS NULL 
                                     OR ( acl_acc.groupid = 0)
                                     OR ( acl_acc.artifact_id IS NULL 
                                          
                                        )
                                   )
                        GROUP BY e.id
                        ORDER BY timestamp DESC
                         LIMIT 6
    
    / The SELECT would examine more rows than MAX_JOIN_SIZE. Check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is ok
    Chi la capisce ?

  2. #2
    Secondo me da qualche parte devi mettere "SET SQL_BIG_SELECTS=1" oppure "SET SQL_MAX_JOIN_SIZE=#"

  3. #3

  4. #4
    l'ho messo da phpmyadmin ma nulla

  5. #5
    non ne vuole saper
    ma non ha errore perche lo stesso script in locale funziona

    come MAX_JOIN_SIZE ho 100000

  6. #6
    che devo fare per uscirne ?

  7. #7

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.