3
20.38 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
518768
677974
410352
475483
474095
468533
447865
464596
788260
498469
456482
536546
500600
564001
668137
515892
423400
468012
484307
542965
428409
533538
536616
463873
469763
534312
526105
650419
466376
509702
451620
532737
536586
530494
542975
559942
447452
560442
594422
600123
448847
516885
526540
557163
532343
464168
689006
565162
628175
593193
604523
537670
469017
589107
618525
647333
545393
534625
680182
704205
519842
545300
556485
648560
523822
536538
634187
593425
601537
543772
584873
601677
536910
612455
513207
]
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 (518768 , 677974 , 410352 , 475483 , 474095 , 468533 , 447865 , 464596 , 788260 , 498469 , 456482 , 536546 , 500600 , 564001 , 668137 , 515892 , 423400 , 468012 , 484307 , 542965 , 428409 , 533538 , 536616 , 463873 , 469763 , 534312 , 526105 , 650419 , 466376 , 509702 , 451620 , 532737 , 536586 , 530494 , 542975 , 559942 , 447452 , 560442 , 594422 , 600123 , 448847 , 516885 , 526540 , 557163 , 532343 , 464168 , 689006 , 565162 , 628175 , 593193 , 604523 , 537670 , 469017 , 589107 , 618525 , 647333 , 545393 , 534625 , 680182 , 704205 , 519842 , 545300 , 556485 , 648560 , 523822 , 536538 , 634187 , 593425 , 601537 , 543772 , 584873 , 601677 , 536910 , 612455 , 513207 );
Copy
4
2.85 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
410352
423400
428409
447452
447865
448847
451620
456482
463873
464168
464596
466376
468012
468533
469017
469763
474095
475483
484307
498469
500600
509702
513207
515892
516885
518768
519842
523822
526105
526540
530494
532343
532737
533538
534312
534625
536538
536546
536586
536616
536910
537670
542965
542975
543772
545300
545393
556485
557163
559942
560442
564001
565162
584873
589107
593193
593425
594422
600123
601537
601677
604523
612455
618525
628175
634187
647333
648560
650419
668137
677974
680182
689006
704205
788260
]
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 (410352 , 423400 , 428409 , 447452 , 447865 , 448847 , 451620 , 456482 , 463873 , 464168 , 464596 , 466376 , 468012 , 468533 , 469017 , 469763 , 474095 , 475483 , 484307 , 498469 , 500600 , 509702 , 513207 , 515892 , 516885 , 518768 , 519842 , 523822 , 526105 , 526540 , 530494 , 532343 , 532737 , 533538 , 534312 , 534625 , 536538 , 536546 , 536586 , 536616 , 536910 , 537670 , 542965 , 542975 , 543772 , 545300 , 545393 , 556485 , 557163 , 559942 , 560442 , 564001 , 565162 , 584873 , 589107 , 593193 , 593425 , 594422 , 600123 , 601537 , 601677 , 604523 , 612455 , 618525 , 628175 , 634187 , 647333 , 648560 , 650419 , 668137 , 677974 , 680182 , 689006 , 704205 , 788260 );
Copy
5
115.05 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
410352
423400
428409
447452
447865
448847
451620
456482
463873
464168
464596
466376
468012
468533
469017
469763
474095
475483
484307
498469
500600
509702
513207
515892
516885
518768
519842
523822
526105
526540
530494
532343
532737
533538
534312
534625
536538
536546
536586
536616
536910
537670
542965
542975
543772
545300
545393
556485
557163
559942
560442
564001
565162
584873
589107
593193
593425
594422
600123
601537
601677
604523
612455
618525
628175
634187
647333
648560
650419
668137
677974
680182
689006
704205
788260
]
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 (410352 , 423400 , 428409 , 447452 , 447865 , 448847 , 451620 , 456482 , 463873 , 464168 , 464596 , 466376 , 468012 , 468533 , 469017 , 469763 , 474095 , 475483 , 484307 , 498469 , 500600 , 509702 , 513207 , 515892 , 516885 , 518768 , 519842 , 523822 , 526105 , 526540 , 530494 , 532343 , 532737 , 533538 , 534312 , 534625 , 536538 , 536546 , 536586 , 536616 , 536910 , 537670 , 542965 , 542975 , 543772 , 545300 , 545393 , 556485 , 557163 , 559942 , 560442 , 564001 , 565162 , 584873 , 589107 , 593193 , 593425 , 594422 , 600123 , 601537 , 601677 , 604523 , 612455 , 618525 , 628175 , 634187 , 647333 , 648560 , 650419 , 668137 , 677974 , 680182 , 689006 , 704205 , 788260 );
Copy