3
12.25 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
459458
406076
153723
427781
478513
58408
458158
384528
453206
427797
454818
451730
422816
408905
427517
479244
395430
449694
423148
400449
459461
520179
458657
458018
524118
567186
559978
589542
599460
427643
481812
459783
502982
421249
414090
433898
456601
561171
586532
448366
468369
431541
409088
508552
532603
504972
396654
452435
439837
476482
434654
426956
470524
428003
453369
545000
598741
597946
599962
598144
601616
596658
535589
582258
593989
588991
604456
624215
524542
]
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 (459458 , 406076 , 153723 , 427781 , 478513 , 58408 , 458158 , 384528 , 453206 , 427797 , 454818 , 451730 , 422816 , 408905 , 427517 , 479244 , 395430 , 449694 , 423148 , 400449 , 459461 , 520179 , 458657 , 458018 , 524118 , 567186 , 559978 , 589542 , 599460 , 427643 , 481812 , 459783 , 502982 , 421249 , 414090 , 433898 , 456601 , 561171 , 586532 , 448366 , 468369 , 431541 , 409088 , 508552 , 532603 , 504972 , 396654 , 452435 , 439837 , 476482 , 434654 , 426956 , 470524 , 428003 , 453369 , 545000 , 598741 , 597946 , 599962 , 598144 , 601616 , 596658 , 535589 , 582258 , 593989 , 588991 , 604456 , 624215 , 524542 );
Copy
4
2.13 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
58408
153723
384528
395430
396654
400449
406076
408905
409088
414090
421249
422816
423148
426956
427517
427643
427781
427797
428003
431541
433898
434654
439837
448366
449694
451730
452435
453206
453369
454818
456601
458018
458158
458657
459458
459461
459783
468369
470524
476482
478513
479244
481812
502982
504972
508552
520179
524118
524542
532603
535589
545000
559978
561171
567186
582258
586532
588991
589542
593989
596658
597946
598144
598741
599460
599962
601616
604456
624215
]
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 (58408 , 153723 , 384528 , 395430 , 396654 , 400449 , 406076 , 408905 , 409088 , 414090 , 421249 , 422816 , 423148 , 426956 , 427517 , 427643 , 427781 , 427797 , 428003 , 431541 , 433898 , 434654 , 439837 , 448366 , 449694 , 451730 , 452435 , 453206 , 453369 , 454818 , 456601 , 458018 , 458158 , 458657 , 459458 , 459461 , 459783 , 468369 , 470524 , 476482 , 478513 , 479244 , 481812 , 502982 , 504972 , 508552 , 520179 , 524118 , 524542 , 532603 , 535589 , 545000 , 559978 , 561171 , 567186 , 582258 , 586532 , 588991 , 589542 , 593989 , 596658 , 597946 , 598144 , 598741 , 599460 , 599962 , 601616 , 604456 , 624215 );
Copy
5
127.61 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
58408
153723
384528
395430
396654
400449
406076
408905
409088
414090
421249
422816
423148
426956
427517
427643
427781
427797
428003
431541
433898
434654
439837
448366
449694
451730
452435
453206
453369
454818
456601
458018
458158
458657
459458
459461
459783
468369
470524
476482
478513
479244
481812
502982
504972
508552
520179
524118
524542
532603
535589
545000
559978
561171
567186
582258
586532
588991
589542
593989
596658
597946
598144
598741
599460
599962
601616
604456
624215
]
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 (58408 , 153723 , 384528 , 395430 , 396654 , 400449 , 406076 , 408905 , 409088 , 414090 , 421249 , 422816 , 423148 , 426956 , 427517 , 427643 , 427781 , 427797 , 428003 , 431541 , 433898 , 434654 , 439837 , 448366 , 449694 , 451730 , 452435 , 453206 , 453369 , 454818 , 456601 , 458018 , 458158 , 458657 , 459458 , 459461 , 459783 , 468369 , 470524 , 476482 , 478513 , 479244 , 481812 , 502982 , 504972 , 508552 , 520179 , 524118 , 524542 , 532603 , 535589 , 545000 , 559978 , 561171 , 567186 , 582258 , 586532 , 588991 , 589542 , 593989 , 596658 , 597946 , 598144 , 598741 , 599460 , 599962 , 601616 , 604456 , 624215 );
Copy