3
12.45 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
540984
541634
534316
471380
519212
531405
535014
544012
642061
808526
429999
807023
814842
674983
821450
820352
486179
821210
526381
531537
430700
481907
405535
543035
643020
430404
533966
639744
771620
563535
673133
639824
824501
481910
524866
541594
614515
458010
636033
544686
635243
637460
800685
462911
446865
426455
413786
412541
466499
477210
408437
456790
512806
434601
586652
528719
636304
604465
513357
494282
545763
516885
603376
574371
574384
]
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 (540984 , 541634 , 534316 , 471380 , 519212 , 531405 , 535014 , 544012 , 642061 , 808526 , 429999 , 807023 , 814842 , 674983 , 821450 , 820352 , 486179 , 821210 , 526381 , 531537 , 430700 , 481907 , 405535 , 543035 , 643020 , 430404 , 533966 , 639744 , 771620 , 563535 , 673133 , 639824 , 824501 , 481910 , 524866 , 541594 , 614515 , 458010 , 636033 , 544686 , 635243 , 637460 , 800685 , 462911 , 446865 , 426455 , 413786 , 412541 , 466499 , 477210 , 408437 , 456790 , 512806 , 434601 , 586652 , 528719 , 636304 , 604465 , 513357 , 494282 , 545763 , 516885 , 603376 , 574371 , 574384 );
Copy
4
2.99 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
405535
408437
412541
413786
426455
429999
430404
430700
434601
446865
456790
458010
462911
466499
471380
477210
481907
481910
486179
494282
512806
513357
516885
519212
524866
526381
528719
531405
531537
533966
534316
535014
540984
541594
541634
543035
544012
544686
545763
563535
574371
574384
586652
603376
604465
614515
635243
636033
636304
637460
639744
639824
642061
643020
673133
674983
771620
800685
807023
808526
814842
820352
821210
821450
824501
]
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 (405535 , 408437 , 412541 , 413786 , 426455 , 429999 , 430404 , 430700 , 434601 , 446865 , 456790 , 458010 , 462911 , 466499 , 471380 , 477210 , 481907 , 481910 , 486179 , 494282 , 512806 , 513357 , 516885 , 519212 , 524866 , 526381 , 528719 , 531405 , 531537 , 533966 , 534316 , 535014 , 540984 , 541594 , 541634 , 543035 , 544012 , 544686 , 545763 , 563535 , 574371 , 574384 , 586652 , 603376 , 604465 , 614515 , 635243 , 636033 , 636304 , 637460 , 639744 , 639824 , 642061 , 643020 , 673133 , 674983 , 771620 , 800685 , 807023 , 808526 , 814842 , 820352 , 821210 , 821450 , 824501 );
Copy
5
98.29 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
405535
408437
412541
413786
426455
429999
430404
430700
434601
446865
456790
458010
462911
466499
471380
477210
481907
481910
486179
494282
512806
513357
516885
519212
524866
526381
528719
531405
531537
533966
534316
535014
540984
541594
541634
543035
544012
544686
545763
563535
574371
574384
586652
603376
604465
614515
635243
636033
636304
637460
639744
639824
642061
643020
673133
674983
771620
800685
807023
808526
814842
820352
821210
821450
824501
]
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 (405535 , 408437 , 412541 , 413786 , 426455 , 429999 , 430404 , 430700 , 434601 , 446865 , 456790 , 458010 , 462911 , 466499 , 471380 , 477210 , 481907 , 481910 , 486179 , 494282 , 512806 , 513357 , 516885 , 519212 , 524866 , 526381 , 528719 , 531405 , 531537 , 533966 , 534316 , 535014 , 540984 , 541594 , 541634 , 543035 , 544012 , 544686 , 545763 , 563535 , 574371 , 574384 , 586652 , 603376 , 604465 , 614515 , 635243 , 636033 , 636304 , 637460 , 639744 , 639824 , 642061 , 643020 , 673133 , 674983 , 771620 , 800685 , 807023 , 808526 , 814842 , 820352 , 821210 , 821450 , 824501 );
Copy