3
14.47 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
728385
118472
824247
260962
400638
466731
757350
474557
408692
154374
640530
720720
477593
16971
665226
598115
524791
532849
445471
818387
667276
463780
603175
642069
665238
532748
644250
524792
667197
480757
537899
478433
648855
462381
530770
530377
492097
635233
533042
530659
484692
545501
454221
454210
603386
648838
384757
609154
484699
665207
445396
502043
445015
515358
561573
452136
484673
410254
492098
605306
577371
817507
649953
639712
537773
445416
448840
598859
751565
543840
639722
466404
512447
477873
647893
]
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 (728385 , 118472 , 824247 , 260962 , 400638 , 466731 , 757350 , 474557 , 408692 , 154374 , 640530 , 720720 , 477593 , 16971 , 665226 , 598115 , 524791 , 532849 , 445471 , 818387 , 667276 , 463780 , 603175 , 642069 , 665238 , 532748 , 644250 , 524792 , 667197 , 480757 , 537899 , 478433 , 648855 , 462381 , 530770 , 530377 , 492097 , 635233 , 533042 , 530659 , 484692 , 545501 , 454221 , 454210 , 603386 , 648838 , 384757 , 609154 , 484699 , 665207 , 445396 , 502043 , 445015 , 515358 , 561573 , 452136 , 484673 , 410254 , 492098 , 605306 , 577371 , 817507 , 649953 , 639712 , 537773 , 445416 , 448840 , 598859 , 751565 , 543840 , 639722 , 466404 , 512447 , 477873 , 647893 );
Copy
4
2.48 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
16971
118472
154374
260962
384757
400638
408692
410254
445015
445396
445416
445471
448840
452136
454210
454221
462381
463780
466404
466731
474557
477593
477873
478433
480757
484673
484692
484699
492097
492098
502043
512447
515358
524791
524792
530377
530659
530770
532748
532849
533042
537773
537899
543840
545501
561573
577371
598115
598859
603175
603386
605306
609154
635233
639712
639722
640530
642069
644250
647893
648838
648855
649953
665207
665226
665238
667197
667276
720720
728385
751565
757350
817507
818387
824247
]
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 (16971 , 118472 , 154374 , 260962 , 384757 , 400638 , 408692 , 410254 , 445015 , 445396 , 445416 , 445471 , 448840 , 452136 , 454210 , 454221 , 462381 , 463780 , 466404 , 466731 , 474557 , 477593 , 477873 , 478433 , 480757 , 484673 , 484692 , 484699 , 492097 , 492098 , 502043 , 512447 , 515358 , 524791 , 524792 , 530377 , 530659 , 530770 , 532748 , 532849 , 533042 , 537773 , 537899 , 543840 , 545501 , 561573 , 577371 , 598115 , 598859 , 603175 , 603386 , 605306 , 609154 , 635233 , 639712 , 639722 , 640530 , 642069 , 644250 , 647893 , 648838 , 648855 , 649953 , 665207 , 665226 , 665238 , 667197 , 667276 , 720720 , 728385 , 751565 , 757350 , 817507 , 818387 , 824247 );
Copy
5
83.94 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
16971
118472
154374
260962
384757
400638
408692
410254
445015
445396
445416
445471
448840
452136
454210
454221
462381
463780
466404
466731
474557
477593
477873
478433
480757
484673
484692
484699
492097
492098
502043
512447
515358
524791
524792
530377
530659
530770
532748
532849
533042
537773
537899
543840
545501
561573
577371
598115
598859
603175
603386
605306
609154
635233
639712
639722
640530
642069
644250
647893
648838
648855
649953
665207
665226
665238
667197
667276
720720
728385
751565
757350
817507
818387
824247
]
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 (16971 , 118472 , 154374 , 260962 , 384757 , 400638 , 408692 , 410254 , 445015 , 445396 , 445416 , 445471 , 448840 , 452136 , 454210 , 454221 , 462381 , 463780 , 466404 , 466731 , 474557 , 477593 , 477873 , 478433 , 480757 , 484673 , 484692 , 484699 , 492097 , 492098 , 502043 , 512447 , 515358 , 524791 , 524792 , 530377 , 530659 , 530770 , 532748 , 532849 , 533042 , 537773 , 537899 , 543840 , 545501 , 561573 , 577371 , 598115 , 598859 , 603175 , 603386 , 605306 , 609154 , 635233 , 639712 , 639722 , 640530 , 642069 , 644250 , 647893 , 648838 , 648855 , 649953 , 665207 , 665226 , 665238 , 667197 , 667276 , 720720 , 728385 , 751565 , 757350 , 817507 , 818387 , 824247 );
Copy