3
12.09 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
744114
803320
581236
808615
761217
759841
807776
490811
750868
681187
731815
536764
620922
801864
787339
564304
535372
565917
541220
640749
633113
828076
518273
531538
682047
706280
667250
531540
628294
637416
502732
545470
642773
531537
823119
815622
536729
644913
514824
815791
822439
734602
823475
823235
803006
752769
753736
788796
675012
698976
822481
822654
596657
469401
516010
618815
749398
444496
476666
468575
697078
785877
427243
699023
623874
675381
690434
623883
821370
524341
467602
]
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 (744114 , 803320 , 581236 , 808615 , 761217 , 759841 , 807776 , 490811 , 750868 , 681187 , 731815 , 536764 , 620922 , 801864 , 787339 , 564304 , 535372 , 565917 , 541220 , 640749 , 633113 , 828076 , 518273 , 531538 , 682047 , 706280 , 667250 , 531540 , 628294 , 637416 , 502732 , 545470 , 642773 , 531537 , 823119 , 815622 , 536729 , 644913 , 514824 , 815791 , 822439 , 734602 , 823475 , 823235 , 803006 , 752769 , 753736 , 788796 , 675012 , 698976 , 822481 , 822654 , 596657 , 469401 , 516010 , 618815 , 749398 , 444496 , 476666 , 468575 , 697078 , 785877 , 427243 , 699023 , 623874 , 675381 , 690434 , 623883 , 821370 , 524341 , 467602 );
Copy
4
3.27 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
427243
444496
467602
468575
469401
476666
490811
502732
514824
516010
518273
524341
531537
531538
531540
535372
536729
536764
541220
545470
564304
565917
581236
596657
618815
620922
623874
623883
628294
633113
637416
640749
642773
644913
667250
675012
675381
681187
682047
690434
697078
698976
699023
706280
731815
734602
744114
749398
750868
752769
753736
759841
761217
785877
787339
788796
801864
803006
803320
807776
808615
815622
815791
821370
822439
822481
822654
823119
823235
823475
]
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 (427243 , 444496 , 467602 , 468575 , 469401 , 476666 , 490811 , 502732 , 514824 , 516010 , 518273 , 524341 , 531537 , 531538 , 531540 , 535372 , 536729 , 536764 , 541220 , 545470 , 564304 , 565917 , 581236 , 596657 , 618815 , 620922 , 623874 , 623883 , 628294 , 633113 , 637416 , 640749 , 642773 , 644913 , 667250 , 675012 , 675381 , 681187 , 682047 , 690434 , 697078 , 698976 , 699023 , 706280 , 731815 , 734602 , 744114 , 749398 , 750868 , 752769 , 753736 , 759841 , 761217 , 785877 , 787339 , 788796 , 801864 , 803006 , 803320 , 807776 , 808615 , 815622 , 815791 , 821370 , 822439 , 822481 , 822654 , 823119 , 823235 , 823475 );
Copy
5
107.47 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
427243
444496
467602
468575
469401
476666
490811
502732
514824
516010
518273
524341
531537
531538
531540
535372
536729
536764
541220
545470
564304
565917
581236
596657
618815
620922
623874
623883
628294
633113
637416
640749
642773
644913
667250
675012
675381
681187
682047
690434
697078
698976
699023
706280
731815
734602
744114
749398
750868
752769
753736
759841
761217
785877
787339
788796
801864
803006
803320
807776
808615
815622
815791
821370
822439
822481
822654
823119
823235
823475
]
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 (427243 , 444496 , 467602 , 468575 , 469401 , 476666 , 490811 , 502732 , 514824 , 516010 , 518273 , 524341 , 531537 , 531538 , 531540 , 535372 , 536729 , 536764 , 541220 , 545470 , 564304 , 565917 , 581236 , 596657 , 618815 , 620922 , 623874 , 623883 , 628294 , 633113 , 637416 , 640749 , 642773 , 644913 , 667250 , 675012 , 675381 , 681187 , 682047 , 690434 , 697078 , 698976 , 699023 , 706280 , 731815 , 734602 , 744114 , 749398 , 750868 , 752769 , 753736 , 759841 , 761217 , 785877 , 787339 , 788796 , 801864 , 803006 , 803320 , 807776 , 808615 , 815622 , 815791 , 821370 , 822439 , 822481 , 822654 , 823119 , 823235 , 823475 );
Copy