3
15.15 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
464919
528128
465302
548153
580671
631607
620775
790409
759785
765714
619531
789647
795396
813253
434786
386858
522970
461704
437573
476729
508512
547237
670826
670839
789416
731279
754127
496780
514236
496556
500931
590623
452283
523197
511777
530646
460402
561021
573740
642022
600453
626887
613168
766590
787765
430374
513568
408765
458384
580214
441641
452279
452282
521367
495686
518747
621335
507291
499891
440632
535423
622719
503658
492563
584887
591439
586564
593372
610695
626944
]
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 (464919 , 528128 , 465302 , 548153 , 580671 , 631607 , 620775 , 790409 , 759785 , 765714 , 619531 , 789647 , 795396 , 813253 , 434786 , 386858 , 522970 , 461704 , 437573 , 476729 , 508512 , 547237 , 670826 , 670839 , 789416 , 731279 , 754127 , 496780 , 514236 , 496556 , 500931 , 590623 , 452283 , 523197 , 511777 , 530646 , 460402 , 561021 , 573740 , 642022 , 600453 , 626887 , 613168 , 766590 , 787765 , 430374 , 513568 , 408765 , 458384 , 580214 , 441641 , 452279 , 452282 , 521367 , 495686 , 518747 , 621335 , 507291 , 499891 , 440632 , 535423 , 622719 , 503658 , 492563 , 584887 , 591439 , 586564 , 593372 , 610695 , 626944 );
Copy
4
2.52 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
386858
408765
430374
434786
437573
440632
441641
452279
452282
452283
458384
460402
461704
464919
465302
476729
492563
495686
496556
496780
499891
500931
503658
507291
508512
511777
513568
514236
518747
521367
522970
523197
528128
530646
535423
547237
548153
561021
573740
580214
580671
584887
586564
590623
591439
593372
600453
610695
613168
619531
620775
621335
622719
626887
626944
631607
642022
670826
670839
731279
754127
759785
765714
766590
787765
789416
789647
790409
795396
813253
]
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 (386858 , 408765 , 430374 , 434786 , 437573 , 440632 , 441641 , 452279 , 452282 , 452283 , 458384 , 460402 , 461704 , 464919 , 465302 , 476729 , 492563 , 495686 , 496556 , 496780 , 499891 , 500931 , 503658 , 507291 , 508512 , 511777 , 513568 , 514236 , 518747 , 521367 , 522970 , 523197 , 528128 , 530646 , 535423 , 547237 , 548153 , 561021 , 573740 , 580214 , 580671 , 584887 , 586564 , 590623 , 591439 , 593372 , 600453 , 610695 , 613168 , 619531 , 620775 , 621335 , 622719 , 626887 , 626944 , 631607 , 642022 , 670826 , 670839 , 731279 , 754127 , 759785 , 765714 , 766590 , 787765 , 789416 , 789647 , 790409 , 795396 , 813253 );
Copy
5
124.45 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
386858
408765
430374
434786
437573
440632
441641
452279
452282
452283
458384
460402
461704
464919
465302
476729
492563
495686
496556
496780
499891
500931
503658
507291
508512
511777
513568
514236
518747
521367
522970
523197
528128
530646
535423
547237
548153
561021
573740
580214
580671
584887
586564
590623
591439
593372
600453
610695
613168
619531
620775
621335
622719
626887
626944
631607
642022
670826
670839
731279
754127
759785
765714
766590
787765
789416
789647
790409
795396
813253
]
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 (386858 , 408765 , 430374 , 434786 , 437573 , 440632 , 441641 , 452279 , 452282 , 452283 , 458384 , 460402 , 461704 , 464919 , 465302 , 476729 , 492563 , 495686 , 496556 , 496780 , 499891 , 500931 , 503658 , 507291 , 508512 , 511777 , 513568 , 514236 , 518747 , 521367 , 522970 , 523197 , 528128 , 530646 , 535423 , 547237 , 548153 , 561021 , 573740 , 580214 , 580671 , 584887 , 586564 , 590623 , 591439 , 593372 , 600453 , 610695 , 613168 , 619531 , 620775 , 621335 , 622719 , 626887 , 626944 , 631607 , 642022 , 670826 , 670839 , 731279 , 754127 , 759785 , 765714 , 766590 , 787765 , 789416 , 789647 , 790409 , 795396 , 813253 );
Copy