3
9.24 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
802651
616608
703509
645273
619439
475907
389765
67698
727850
96250
775054
790955
65281
649266
718674
388782
649152
398666
649150
780016
388481
314541
422331
451527
669408
96059
96960
47613
188453
96495
703096
707347
600192
741280
385348
96341
614344
405056
476112
755170
771482
749266
727769
418417
436031
188437
645241
70082
390994
679038
420182
801886
717635
405961
676836
725335
728397
558126
706935
500467
616956
676023
571201
434192
]
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 (802651 , 616608 , 703509 , 645273 , 619439 , 475907 , 389765 , 67698 , 727850 , 96250 , 775054 , 790955 , 65281 , 649266 , 718674 , 388782 , 649152 , 398666 , 649150 , 780016 , 388481 , 314541 , 422331 , 451527 , 669408 , 96059 , 96960 , 47613 , 188453 , 96495 , 703096 , 707347 , 600192 , 741280 , 385348 , 96341 , 614344 , 405056 , 476112 , 755170 , 771482 , 749266 , 727769 , 418417 , 436031 , 188437 , 645241 , 70082 , 390994 , 679038 , 420182 , 801886 , 717635 , 405961 , 676836 , 725335 , 728397 , 558126 , 706935 , 500467 , 616956 , 676023 , 571201 , 434192 );
Copy
4
2.37 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
47613
65281
67698
70082
96059
96250
96341
96495
96960
188437
188453
314541
385348
388481
388782
389765
390994
398666
405056
405961
418417
420182
422331
434192
436031
451527
475907
476112
500467
558126
571201
600192
614344
616608
616956
619439
645241
645273
649150
649152
649266
669408
676023
676836
679038
703096
703509
706935
707347
717635
718674
725335
727769
727850
728397
741280
749266
755170
771482
775054
780016
790955
801886
802651
]
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 (47613 , 65281 , 67698 , 70082 , 96059 , 96250 , 96341 , 96495 , 96960 , 188437 , 188453 , 314541 , 385348 , 388481 , 388782 , 389765 , 390994 , 398666 , 405056 , 405961 , 418417 , 420182 , 422331 , 434192 , 436031 , 451527 , 475907 , 476112 , 500467 , 558126 , 571201 , 600192 , 614344 , 616608 , 616956 , 619439 , 645241 , 645273 , 649150 , 649152 , 649266 , 669408 , 676023 , 676836 , 679038 , 703096 , 703509 , 706935 , 707347 , 717635 , 718674 , 725335 , 727769 , 727850 , 728397 , 741280 , 749266 , 755170 , 771482 , 775054 , 780016 , 790955 , 801886 , 802651 );
Copy
5
122.48 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
47613
65281
67698
70082
96059
96250
96341
96495
96960
188437
188453
314541
385348
388481
388782
389765
390994
398666
405056
405961
418417
420182
422331
434192
436031
451527
475907
476112
500467
558126
571201
600192
614344
616608
616956
619439
645241
645273
649150
649152
649266
669408
676023
676836
679038
703096
703509
706935
707347
717635
718674
725335
727769
727850
728397
741280
749266
755170
771482
775054
780016
790955
801886
802651
]
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 (47613 , 65281 , 67698 , 70082 , 96059 , 96250 , 96341 , 96495 , 96960 , 188437 , 188453 , 314541 , 385348 , 388481 , 388782 , 389765 , 390994 , 398666 , 405056 , 405961 , 418417 , 420182 , 422331 , 434192 , 436031 , 451527 , 475907 , 476112 , 500467 , 558126 , 571201 , 600192 , 614344 , 616608 , 616956 , 619439 , 645241 , 645273 , 649150 , 649152 , 649266 , 669408 , 676023 , 676836 , 679038 , 703096 , 703509 , 706935 , 707347 , 717635 , 718674 , 725335 , 727769 , 727850 , 728397 , 741280 , 749266 , 755170 , 771482 , 775054 , 780016 , 790955 , 801886 , 802651 );
Copy