3
11.22 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
773369
760301
737557
738566
710541
683404
773319
795998
750940
768615
438032
518039
560316
583000
692077
585993
730813
732990
751732
466898
531075
395887
445838
492964
557433
583558
553082
695908
681237
684695
680443
589487
610322
619009
592644
756535
746171
769013
626452
792390
460055
445747
435523
460833
507440
579821
579471
637247
592319
767220
475499
449270
467667
479877
466780
493453
518004
578290
553085
449499
493277
516488
503338
456951
449029
559300
598297
418252
463357
492972
528360
493426
485147
]
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 (773369 , 760301 , 737557 , 738566 , 710541 , 683404 , 773319 , 795998 , 750940 , 768615 , 438032 , 518039 , 560316 , 583000 , 692077 , 585993 , 730813 , 732990 , 751732 , 466898 , 531075 , 395887 , 445838 , 492964 , 557433 , 583558 , 553082 , 695908 , 681237 , 684695 , 680443 , 589487 , 610322 , 619009 , 592644 , 756535 , 746171 , 769013 , 626452 , 792390 , 460055 , 445747 , 435523 , 460833 , 507440 , 579821 , 579471 , 637247 , 592319 , 767220 , 475499 , 449270 , 467667 , 479877 , 466780 , 493453 , 518004 , 578290 , 553085 , 449499 , 493277 , 516488 , 503338 , 456951 , 449029 , 559300 , 598297 , 418252 , 463357 , 492972 , 528360 , 493426 , 485147 );
Copy
4
2.82 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
395887
418252
435523
438032
445747
445838
449029
449270
449499
456951
460055
460833
463357
466780
466898
467667
475499
479877
485147
492964
492972
493277
493426
493453
503338
507440
516488
518004
518039
528360
531075
553082
553085
557433
559300
560316
578290
579471
579821
583000
583558
585993
589487
592319
592644
598297
610322
619009
626452
637247
680443
681237
683404
684695
692077
695908
710541
730813
732990
737557
738566
746171
750940
751732
756535
760301
767220
768615
769013
773319
773369
792390
795998
]
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 (395887 , 418252 , 435523 , 438032 , 445747 , 445838 , 449029 , 449270 , 449499 , 456951 , 460055 , 460833 , 463357 , 466780 , 466898 , 467667 , 475499 , 479877 , 485147 , 492964 , 492972 , 493277 , 493426 , 493453 , 503338 , 507440 , 516488 , 518004 , 518039 , 528360 , 531075 , 553082 , 553085 , 557433 , 559300 , 560316 , 578290 , 579471 , 579821 , 583000 , 583558 , 585993 , 589487 , 592319 , 592644 , 598297 , 610322 , 619009 , 626452 , 637247 , 680443 , 681237 , 683404 , 684695 , 692077 , 695908 , 710541 , 730813 , 732990 , 737557 , 738566 , 746171 , 750940 , 751732 , 756535 , 760301 , 767220 , 768615 , 769013 , 773319 , 773369 , 792390 , 795998 );
Copy
5
80.91 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
395887
418252
435523
438032
445747
445838
449029
449270
449499
456951
460055
460833
463357
466780
466898
467667
475499
479877
485147
492964
492972
493277
493426
493453
503338
507440
516488
518004
518039
528360
531075
553082
553085
557433
559300
560316
578290
579471
579821
583000
583558
585993
589487
592319
592644
598297
610322
619009
626452
637247
680443
681237
683404
684695
692077
695908
710541
730813
732990
737557
738566
746171
750940
751732
756535
760301
767220
768615
769013
773319
773369
792390
795998
]
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 (395887 , 418252 , 435523 , 438032 , 445747 , 445838 , 449029 , 449270 , 449499 , 456951 , 460055 , 460833 , 463357 , 466780 , 466898 , 467667 , 475499 , 479877 , 485147 , 492964 , 492972 , 493277 , 493426 , 493453 , 503338 , 507440 , 516488 , 518004 , 518039 , 528360 , 531075 , 553082 , 553085 , 557433 , 559300 , 560316 , 578290 , 579471 , 579821 , 583000 , 583558 , 585993 , 589487 , 592319 , 592644 , 598297 , 610322 , 619009 , 626452 , 637247 , 680443 , 681237 , 683404 , 684695 , 692077 , 695908 , 710541 , 730813 , 732990 , 737557 , 738566 , 746171 , 750940 , 751732 , 756535 , 760301 , 767220 , 768615 , 769013 , 773319 , 773369 , 792390 , 795998 );
Copy