4
13.08 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
381924
465600
504745
522574
492341
425958
470919
502052
475907
428770
443045
446481
415540
476426
383439
518781
400912
445941
561815
540914
478787
522134
545708
518003
477439
443741
484721
485712
470385
482131
69704
462434
554301
486371
386300
390844
497953
470958
420818
396588
443964
486746
451963
484695
432243
486706
81571
397495
420078
431948
410954
579321
401119
661354
97045
456039
493143
551572
429775
433206
388097
519727
421520
460738
500716
483546
565542
499852
541804
573314
]
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 (381924 , 465600 , 504745 , 522574 , 492341 , 425958 , 470919 , 502052 , 475907 , 428770 , 443045 , 446481 , 415540 , 476426 , 383439 , 518781 , 400912 , 445941 , 561815 , 540914 , 478787 , 522134 , 545708 , 518003 , 477439 , 443741 , 484721 , 485712 , 470385 , 482131 , 69704 , 462434 , 554301 , 486371 , 386300 , 390844 , 497953 , 470958 , 420818 , 396588 , 443964 , 486746 , 451963 , 484695 , 432243 , 486706 , 81571 , 397495 , 420078 , 431948 , 410954 , 579321 , 401119 , 661354 , 97045 , 456039 , 493143 , 551572 , 429775 , 433206 , 388097 , 519727 , 421520 , 460738 , 500716 , 483546 , 565542 , 499852 , 541804 , 573314 );
Copy
5
211.60 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
69704
81571
97045
381924
383439
386300
388097
390844
396588
397495
400912
401119
410954
415540
420078
420818
421520
425958
428770
429775
431948
432243
433206
443045
443741
443964
445941
446481
451963
456039
460738
462434
465600
470385
470919
470958
475907
476426
477439
478787
482131
483546
484695
484721
485712
486371
486706
486746
492341
493143
497953
499852
500716
502052
504745
518003
518781
519727
522134
522574
540914
541804
545708
551572
554301
561815
565542
573314
579321
661354
]
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 (69704 , 81571 , 97045 , 381924 , 383439 , 386300 , 388097 , 390844 , 396588 , 397495 , 400912 , 401119 , 410954 , 415540 , 420078 , 420818 , 421520 , 425958 , 428770 , 429775 , 431948 , 432243 , 433206 , 443045 , 443741 , 443964 , 445941 , 446481 , 451963 , 456039 , 460738 , 462434 , 465600 , 470385 , 470919 , 470958 , 475907 , 476426 , 477439 , 478787 , 482131 , 483546 , 484695 , 484721 , 485712 , 486371 , 486706 , 486746 , 492341 , 493143 , 497953 , 499852 , 500716 , 502052 , 504745 , 518003 , 518781 , 519727 , 522134 , 522574 , 540914 , 541804 , 545708 , 551572 , 554301 , 561815 , 565542 , 573314 , 579321 , 661354 );
Copy
6
100.06 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
69704
81571
97045
381924
383439
386300
388097
390844
396588
397495
400912
401119
410954
415540
420078
420818
421520
425958
428770
429775
431948
432243
433206
443045
443741
443964
445941
446481
451963
456039
460738
462434
465600
470385
470919
470958
475907
476426
477439
478787
482131
483546
484695
484721
485712
486371
486706
486746
492341
493143
497953
499852
500716
502052
504745
518003
518781
519727
522134
522574
540914
541804
545708
551572
554301
561815
565542
573314
579321
661354
]
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 (69704 , 81571 , 97045 , 381924 , 383439 , 386300 , 388097 , 390844 , 396588 , 397495 , 400912 , 401119 , 410954 , 415540 , 420078 , 420818 , 421520 , 425958 , 428770 , 429775 , 431948 , 432243 , 433206 , 443045 , 443741 , 443964 , 445941 , 446481 , 451963 , 456039 , 460738 , 462434 , 465600 , 470385 , 470919 , 470958 , 475907 , 476426 , 477439 , 478787 , 482131 , 483546 , 484695 , 484721 , 485712 , 486371 , 486706 , 486746 , 492341 , 493143 , 497953 , 499852 , 500716 , 502052 , 504745 , 518003 , 518781 , 519727 , 522134 , 522574 , 540914 , 541804 , 545708 , 551572 , 554301 , 561815 , 565542 , 573314 , 579321 , 661354 );
Copy