3
13.52 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
341596
466637
568998
595284
561375
606833
502467
569009
568508
649106
513216
565154
568997
596882
519517
565249
565150
710435
515715
478530
564863
541806
431446
389700
787561
453494
526223
531425
545372
546200
580646
608930
505132
541647
415739
520753
666865
524261
580338
526048
526439
490073
817057
537371
455812
520759
612809
527967
552332
553656
461498
458877
526612
456730
439535
419503
522363
464608
823298
493807
520590
511303
430504
510025
650313
589671
439653
541864
]
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 (341596 , 466637 , 568998 , 595284 , 561375 , 606833 , 502467 , 569009 , 568508 , 649106 , 513216 , 565154 , 568997 , 596882 , 519517 , 565249 , 565150 , 710435 , 515715 , 478530 , 564863 , 541806 , 431446 , 389700 , 787561 , 453494 , 526223 , 531425 , 545372 , 546200 , 580646 , 608930 , 505132 , 541647 , 415739 , 520753 , 666865 , 524261 , 580338 , 526048 , 526439 , 490073 , 817057 , 537371 , 455812 , 520759 , 612809 , 527967 , 552332 , 553656 , 461498 , 458877 , 526612 , 456730 , 439535 , 419503 , 522363 , 464608 , 823298 , 493807 , 520590 , 511303 , 430504 , 510025 , 650313 , 589671 , 439653 , 541864 );
Copy
4
3.80 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
341596
389700
415739
419503
430504
431446
439535
439653
453494
455812
456730
458877
461498
464608
466637
478530
490073
493807
502467
505132
510025
511303
513216
515715
519517
520590
520753
520759
522363
524261
526048
526223
526439
526612
527967
531425
537371
541647
541806
541864
545372
546200
552332
553656
561375
564863
565150
565154
565249
568508
568997
568998
569009
580338
580646
589671
595284
596882
606833
608930
612809
649106
650313
666865
710435
787561
817057
823298
]
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 (341596 , 389700 , 415739 , 419503 , 430504 , 431446 , 439535 , 439653 , 453494 , 455812 , 456730 , 458877 , 461498 , 464608 , 466637 , 478530 , 490073 , 493807 , 502467 , 505132 , 510025 , 511303 , 513216 , 515715 , 519517 , 520590 , 520753 , 520759 , 522363 , 524261 , 526048 , 526223 , 526439 , 526612 , 527967 , 531425 , 537371 , 541647 , 541806 , 541864 , 545372 , 546200 , 552332 , 553656 , 561375 , 564863 , 565150 , 565154 , 565249 , 568508 , 568997 , 568998 , 569009 , 580338 , 580646 , 589671 , 595284 , 596882 , 606833 , 608930 , 612809 , 649106 , 650313 , 666865 , 710435 , 787561 , 817057 , 823298 );
Copy
5
92.98 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
341596
389700
415739
419503
430504
431446
439535
439653
453494
455812
456730
458877
461498
464608
466637
478530
490073
493807
502467
505132
510025
511303
513216
515715
519517
520590
520753
520759
522363
524261
526048
526223
526439
526612
527967
531425
537371
541647
541806
541864
545372
546200
552332
553656
561375
564863
565150
565154
565249
568508
568997
568998
569009
580338
580646
589671
595284
596882
606833
608930
612809
649106
650313
666865
710435
787561
817057
823298
]
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 (341596 , 389700 , 415739 , 419503 , 430504 , 431446 , 439535 , 439653 , 453494 , 455812 , 456730 , 458877 , 461498 , 464608 , 466637 , 478530 , 490073 , 493807 , 502467 , 505132 , 510025 , 511303 , 513216 , 515715 , 519517 , 520590 , 520753 , 520759 , 522363 , 524261 , 526048 , 526223 , 526439 , 526612 , 527967 , 531425 , 537371 , 541647 , 541806 , 541864 , 545372 , 546200 , 552332 , 553656 , 561375 , 564863 , 565150 , 565154 , 565249 , 568508 , 568997 , 568998 , 569009 , 580338 , 580646 , 589671 , 595284 , 596882 , 606833 , 608930 , 612809 , 649106 , 650313 , 666865 , 710435 , 787561 , 817057 , 823298 );
Copy