3
12.72 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
42536
388642
396784
722519
403896
530685
761468
61051
420216
398100
532838
543501
469536
386156
742461
385755
483737
415950
511254
476055
554338
645525
568501
493256
406030
545608
642064
761572
451259
490956
428786
429608
467955
532345
511489
519437
431540
478437
460606
467715
420050
812278
765714
795396
402626
595761
530497
575300
567127
666968
413044
630533
749693
536340
541854
600490
452781
752700
642069
519497
482139
642063
674966
615983
425993
582540
628334
544964
637049
534023
628117
508891
427174
541863
]
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 (42536 , 388642 , 396784 , 722519 , 403896 , 530685 , 761468 , 61051 , 420216 , 398100 , 532838 , 543501 , 469536 , 386156 , 742461 , 385755 , 483737 , 415950 , 511254 , 476055 , 554338 , 645525 , 568501 , 493256 , 406030 , 545608 , 642064 , 761572 , 451259 , 490956 , 428786 , 429608 , 467955 , 532345 , 511489 , 519437 , 431540 , 478437 , 460606 , 467715 , 420050 , 812278 , 765714 , 795396 , 402626 , 595761 , 530497 , 575300 , 567127 , 666968 , 413044 , 630533 , 749693 , 536340 , 541854 , 600490 , 452781 , 752700 , 642069 , 519497 , 482139 , 642063 , 674966 , 615983 , 425993 , 582540 , 628334 , 544964 , 637049 , 534023 , 628117 , 508891 , 427174 , 541863 );
Copy
4
2.41 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
42536
61051
385755
386156
388642
396784
398100
402626
403896
406030
413044
415950
420050
420216
425993
427174
428786
429608
431540
451259
452781
460606
467715
467955
469536
476055
478437
482139
483737
490956
493256
508891
511254
511489
519437
519497
530497
530685
532345
532838
534023
536340
541854
541863
543501
544964
545608
554338
567127
568501
575300
582540
595761
600490
615983
628117
628334
630533
637049
642063
642064
642069
645525
666968
674966
722519
742461
749693
752700
761468
761572
765714
795396
812278
]
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 (42536 , 61051 , 385755 , 386156 , 388642 , 396784 , 398100 , 402626 , 403896 , 406030 , 413044 , 415950 , 420050 , 420216 , 425993 , 427174 , 428786 , 429608 , 431540 , 451259 , 452781 , 460606 , 467715 , 467955 , 469536 , 476055 , 478437 , 482139 , 483737 , 490956 , 493256 , 508891 , 511254 , 511489 , 519437 , 519497 , 530497 , 530685 , 532345 , 532838 , 534023 , 536340 , 541854 , 541863 , 543501 , 544964 , 545608 , 554338 , 567127 , 568501 , 575300 , 582540 , 595761 , 600490 , 615983 , 628117 , 628334 , 630533 , 637049 , 642063 , 642064 , 642069 , 645525 , 666968 , 674966 , 722519 , 742461 , 749693 , 752700 , 761468 , 761572 , 765714 , 795396 , 812278 );
Copy
5
105.70 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
42536
61051
385755
386156
388642
396784
398100
402626
403896
406030
413044
415950
420050
420216
425993
427174
428786
429608
431540
451259
452781
460606
467715
467955
469536
476055
478437
482139
483737
490956
493256
508891
511254
511489
519437
519497
530497
530685
532345
532838
534023
536340
541854
541863
543501
544964
545608
554338
567127
568501
575300
582540
595761
600490
615983
628117
628334
630533
637049
642063
642064
642069
645525
666968
674966
722519
742461
749693
752700
761468
761572
765714
795396
812278
]
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 (42536 , 61051 , 385755 , 386156 , 388642 , 396784 , 398100 , 402626 , 403896 , 406030 , 413044 , 415950 , 420050 , 420216 , 425993 , 427174 , 428786 , 429608 , 431540 , 451259 , 452781 , 460606 , 467715 , 467955 , 469536 , 476055 , 478437 , 482139 , 483737 , 490956 , 493256 , 508891 , 511254 , 511489 , 519437 , 519497 , 530497 , 530685 , 532345 , 532838 , 534023 , 536340 , 541854 , 541863 , 543501 , 544964 , 545608 , 554338 , 567127 , 568501 , 575300 , 582540 , 595761 , 600490 , 615983 , 628117 , 628334 , 630533 , 637049 , 642063 , 642064 , 642069 , 645525 , 666968 , 674966 , 722519 , 742461 , 749693 , 752700 , 761468 , 761572 , 765714 , 795396 , 812278 );
Copy