3
9.88 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
413824
453039
480450
447611
468604
475512
480331
478220
496733
484792
509645
527810
529432
423592
443492
445289
453964
456329
446908
457569
534432
541807
545201
565001
578290
675405
709917
720424
598249
744329
604406
644056
423908
464142
467588
447557
503056
385092
382050
430262
456951
505598
541278
642022
702622
435157
481047
469641
446991
502242
467995
510321
520767
542709
788264
443374
514241
458907
472299
487370
598485
424530
472474
582631
603953
413141
528923
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (413824 , 453039 , 480450 , 447611 , 468604 , 475512 , 480331 , 478220 , 496733 , 484792 , 509645 , 527810 , 529432 , 423592 , 443492 , 445289 , 453964 , 456329 , 446908 , 457569 , 534432 , 541807 , 545201 , 565001 , 578290 , 675405 , 709917 , 720424 , 598249 , 744329 , 604406 , 644056 , 423908 , 464142 , 467588 , 447557 , 503056 , 385092 , 382050 , 430262 , 456951 , 505598 , 541278 , 642022 , 702622 , 435157 , 481047 , 469641 , 446991 , 502242 , 467995 , 510321 , 520767 , 542709 , 788264 , 443374 , 514241 , 458907 , 472299 , 487370 , 598485 , 424530 , 472474 , 582631 , 603953 , 413141 , 528923 );
Copy
4
2.13 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
382050
385092
413141
413824
423592
423908
424530
430262
435157
443374
443492
445289
446908
446991
447557
447611
453039
453964
456329
456951
457569
458907
464142
467588
467995
468604
469641
472299
472474
475512
478220
480331
480450
481047
484792
487370
496733
502242
503056
505598
509645
510321
514241
520767
527810
528923
529432
534432
541278
541807
542709
545201
565001
578290
582631
598249
598485
603953
604406
642022
644056
675405
702622
709917
720424
744329
788264
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (382050 , 385092 , 413141 , 413824 , 423592 , 423908 , 424530 , 430262 , 435157 , 443374 , 443492 , 445289 , 446908 , 446991 , 447557 , 447611 , 453039 , 453964 , 456329 , 456951 , 457569 , 458907 , 464142 , 467588 , 467995 , 468604 , 469641 , 472299 , 472474 , 475512 , 478220 , 480331 , 480450 , 481047 , 484792 , 487370 , 496733 , 502242 , 503056 , 505598 , 509645 , 510321 , 514241 , 520767 , 527810 , 528923 , 529432 , 534432 , 541278 , 541807 , 542709 , 545201 , 565001 , 578290 , 582631 , 598249 , 598485 , 603953 , 604406 , 642022 , 644056 , 675405 , 702622 , 709917 , 720424 , 744329 , 788264 );
Copy
5
106.03 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
382050
385092
413141
413824
423592
423908
424530
430262
435157
443374
443492
445289
446908
446991
447557
447611
453039
453964
456329
456951
457569
458907
464142
467588
467995
468604
469641
472299
472474
475512
478220
480331
480450
481047
484792
487370
496733
502242
503056
505598
509645
510321
514241
520767
527810
528923
529432
534432
541278
541807
542709
545201
565001
578290
582631
598249
598485
603953
604406
642022
644056
675405
702622
709917
720424
744329
788264
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (382050 , 385092 , 413141 , 413824 , 423592 , 423908 , 424530 , 430262 , 435157 , 443374 , 443492 , 445289 , 446908 , 446991 , 447557 , 447611 , 453039 , 453964 , 456329 , 456951 , 457569 , 458907 , 464142 , 467588 , 467995 , 468604 , 469641 , 472299 , 472474 , 475512 , 478220 , 480331 , 480450 , 481047 , 484792 , 487370 , 496733 , 502242 , 503056 , 505598 , 509645 , 510321 , 514241 , 520767 , 527810 , 528923 , 529432 , 534432 , 541278 , 541807 , 542709 , 545201 , 565001 , 578290 , 582631 , 598249 , 598485 , 603953 , 604406 , 642022 , 644056 , 675405 , 702622 , 709917 , 720424 , 744329 , 788264 );
Copy