3
10.95 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
781651
640696
415590
781653
742385
720719
738367
554922
531513
437218
794260
738353
742695
546936
593495
45136
454237
729299
392676
560943
554981
515363
556771
530811
465384
489847
488362
526843
478825
544306
644175
795483
760002
728234
402998
637092
478927
665971
803889
490896
505655
619543
465378
636033
478829
606349
442211
742613
586713
587272
484566
439575
411698
481957
528388
563074
482317
430602
459943
500424
531408
80373
454200
523762
520265
496551
526261
430629
478834
492325
527003
584059
454076
648861
]
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 (781651 , 640696 , 415590 , 781653 , 742385 , 720719 , 738367 , 554922 , 531513 , 437218 , 794260 , 738353 , 742695 , 546936 , 593495 , 45136 , 454237 , 729299 , 392676 , 560943 , 554981 , 515363 , 556771 , 530811 , 465384 , 489847 , 488362 , 526843 , 478825 , 544306 , 644175 , 795483 , 760002 , 728234 , 402998 , 637092 , 478927 , 665971 , 803889 , 490896 , 505655 , 619543 , 465378 , 636033 , 478829 , 606349 , 442211 , 742613 , 586713 , 587272 , 484566 , 439575 , 411698 , 481957 , 528388 , 563074 , 482317 , 430602 , 459943 , 500424 , 531408 , 80373 , 454200 , 523762 , 520265 , 496551 , 526261 , 430629 , 478834 , 492325 , 527003 , 584059 , 454076 , 648861 );
Copy
4
2.04 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
45136
80373
392676
402998
411698
415590
430602
430629
437218
439575
442211
454076
454200
454237
459943
465378
465384
478825
478829
478834
478927
481957
482317
484566
488362
489847
490896
492325
496551
500424
505655
515363
520265
523762
526261
526843
527003
528388
530811
531408
531513
544306
546936
554922
554981
556771
560943
563074
584059
586713
587272
593495
606349
619543
636033
637092
640696
644175
648861
665971
720719
728234
729299
738353
738367
742385
742613
742695
760002
781651
781653
794260
795483
803889
]
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 (45136 , 80373 , 392676 , 402998 , 411698 , 415590 , 430602 , 430629 , 437218 , 439575 , 442211 , 454076 , 454200 , 454237 , 459943 , 465378 , 465384 , 478825 , 478829 , 478834 , 478927 , 481957 , 482317 , 484566 , 488362 , 489847 , 490896 , 492325 , 496551 , 500424 , 505655 , 515363 , 520265 , 523762 , 526261 , 526843 , 527003 , 528388 , 530811 , 531408 , 531513 , 544306 , 546936 , 554922 , 554981 , 556771 , 560943 , 563074 , 584059 , 586713 , 587272 , 593495 , 606349 , 619543 , 636033 , 637092 , 640696 , 644175 , 648861 , 665971 , 720719 , 728234 , 729299 , 738353 , 738367 , 742385 , 742613 , 742695 , 760002 , 781651 , 781653 , 794260 , 795483 , 803889 );
Copy
5
114.38 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
45136
80373
392676
402998
411698
415590
430602
430629
437218
439575
442211
454076
454200
454237
459943
465378
465384
478825
478829
478834
478927
481957
482317
484566
488362
489847
490896
492325
496551
500424
505655
515363
520265
523762
526261
526843
527003
528388
530811
531408
531513
544306
546936
554922
554981
556771
560943
563074
584059
586713
587272
593495
606349
619543
636033
637092
640696
644175
648861
665971
720719
728234
729299
738353
738367
742385
742613
742695
760002
781651
781653
794260
795483
803889
]
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 (45136 , 80373 , 392676 , 402998 , 411698 , 415590 , 430602 , 430629 , 437218 , 439575 , 442211 , 454076 , 454200 , 454237 , 459943 , 465378 , 465384 , 478825 , 478829 , 478834 , 478927 , 481957 , 482317 , 484566 , 488362 , 489847 , 490896 , 492325 , 496551 , 500424 , 505655 , 515363 , 520265 , 523762 , 526261 , 526843 , 527003 , 528388 , 530811 , 531408 , 531513 , 544306 , 546936 , 554922 , 554981 , 556771 , 560943 , 563074 , 584059 , 586713 , 587272 , 593495 , 606349 , 619543 , 636033 , 637092 , 640696 , 644175 , 648861 , 665971 , 720719 , 728234 , 729299 , 738353 , 738367 , 742385 , 742613 , 742695 , 760002 , 781651 , 781653 , 794260 , 795483 , 803889 );
Copy