3
17.07 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
573393
682545
388668
647837
507666
598441
404629
491473
420659
492267
612856
415819
593868
429143
498022
494770
563535
727812
613177
477097
458719
603364
584063
752563
445416
541643
642069
382071
603002
434638
621722
454709
508860
456518
428353
476797
495199
543772
494985
559392
559183
421164
530377
811826
506500
543918
626337
751565
527416
489328
560197
604161
495022
583366
582624
610588
556535
522345
651601
663458
487703
390888
541639
466404
541650
620851
559233
567416
647893
642746
430404
641413
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 (573393 , 682545 , 388668 , 647837 , 507666 , 598441 , 404629 , 491473 , 420659 , 492267 , 612856 , 415819 , 593868 , 429143 , 498022 , 494770 , 563535 , 727812 , 613177 , 477097 , 458719 , 603364 , 584063 , 752563 , 445416 , 541643 , 642069 , 382071 , 603002 , 434638 , 621722 , 454709 , 508860 , 456518 , 428353 , 476797 , 495199 , 543772 , 494985 , 559392 , 559183 , 421164 , 530377 , 811826 , 506500 , 543918 , 626337 , 751565 , 527416 , 489328 , 560197 , 604161 , 495022 , 583366 , 582624 , 610588 , 556535 , 522345 , 651601 , 663458 , 487703 , 390888 , 541639 , 466404 , 541650 , 620851 , 559233 , 567416 , 647893 , 642746 , 430404 , 641413 , 434192 );
Copy
4
2.89 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
382071
388668
390888
404629
415819
420659
421164
428353
429143
430404
434192
434638
445416
454709
456518
458719
466404
476797
477097
487703
489328
491473
492267
494770
494985
495022
495199
498022
506500
507666
508860
522345
527416
530377
541639
541643
541650
543772
543918
556535
559183
559233
559392
560197
563535
567416
573393
582624
583366
584063
593868
598441
603002
603364
604161
610588
612856
613177
620851
621722
626337
641413
642069
642746
647837
647893
651601
663458
682545
727812
751565
752563
811826
]
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 (382071 , 388668 , 390888 , 404629 , 415819 , 420659 , 421164 , 428353 , 429143 , 430404 , 434192 , 434638 , 445416 , 454709 , 456518 , 458719 , 466404 , 476797 , 477097 , 487703 , 489328 , 491473 , 492267 , 494770 , 494985 , 495022 , 495199 , 498022 , 506500 , 507666 , 508860 , 522345 , 527416 , 530377 , 541639 , 541643 , 541650 , 543772 , 543918 , 556535 , 559183 , 559233 , 559392 , 560197 , 563535 , 567416 , 573393 , 582624 , 583366 , 584063 , 593868 , 598441 , 603002 , 603364 , 604161 , 610588 , 612856 , 613177 , 620851 , 621722 , 626337 , 641413 , 642069 , 642746 , 647837 , 647893 , 651601 , 663458 , 682545 , 727812 , 751565 , 752563 , 811826 );
Copy
5
123.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
382071
388668
390888
404629
415819
420659
421164
428353
429143
430404
434192
434638
445416
454709
456518
458719
466404
476797
477097
487703
489328
491473
492267
494770
494985
495022
495199
498022
506500
507666
508860
522345
527416
530377
541639
541643
541650
543772
543918
556535
559183
559233
559392
560197
563535
567416
573393
582624
583366
584063
593868
598441
603002
603364
604161
610588
612856
613177
620851
621722
626337
641413
642069
642746
647837
647893
651601
663458
682545
727812
751565
752563
811826
]
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 (382071 , 388668 , 390888 , 404629 , 415819 , 420659 , 421164 , 428353 , 429143 , 430404 , 434192 , 434638 , 445416 , 454709 , 456518 , 458719 , 466404 , 476797 , 477097 , 487703 , 489328 , 491473 , 492267 , 494770 , 494985 , 495022 , 495199 , 498022 , 506500 , 507666 , 508860 , 522345 , 527416 , 530377 , 541639 , 541643 , 541650 , 543772 , 543918 , 556535 , 559183 , 559233 , 559392 , 560197 , 563535 , 567416 , 573393 , 582624 , 583366 , 584063 , 593868 , 598441 , 603002 , 603364 , 604161 , 610588 , 612856 , 613177 , 620851 , 621722 , 626337 , 641413 , 642069 , 642746 , 647837 , 647893 , 651601 , 663458 , 682545 , 727812 , 751565 , 752563 , 811826 );
Copy