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