4
14.06 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
563218
682545
673960
681279
607049
612381
599965
807191
420925
474784
452535
482350
431352
472513
525226
464542
531943
460669
541661
560227
571213
547932
622041
609085
625519
428202
439623
480521
490944
523335
541635
445436
492267
492106
510286
566248
541833
550100
571016
599927
609953
623380
615800
622375
604161
609140
590884
603364
427981
416982
492602
484519
520445
513940
534994
561480
614273
639751
489112
538848
543419
591135
479196
533557
613487
]
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 (563218 , 682545 , 673960 , 681279 , 607049 , 612381 , 599965 , 807191 , 420925 , 474784 , 452535 , 482350 , 431352 , 472513 , 525226 , 464542 , 531943 , 460669 , 541661 , 560227 , 571213 , 547932 , 622041 , 609085 , 625519 , 428202 , 439623 , 480521 , 490944 , 523335 , 541635 , 445436 , 492267 , 492106 , 510286 , 566248 , 541833 , 550100 , 571016 , 599927 , 609953 , 623380 , 615800 , 622375 , 604161 , 609140 , 590884 , 603364 , 427981 , 416982 , 492602 , 484519 , 520445 , 513940 , 534994 , 561480 , 614273 , 639751 , 489112 , 538848 , 543419 , 591135 , 479196 , 533557 , 613487 );
Copy
5
2.32 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
416982
420925
427981
428202
431352
439623
445436
452535
460669
464542
472513
474784
479196
480521
482350
484519
489112
490944
492106
492267
492602
510286
513940
520445
523335
525226
531943
533557
534994
538848
541635
541661
541833
543419
547932
550100
560227
561480
563218
566248
571016
571213
590884
591135
599927
599965
603364
604161
607049
609085
609140
609953
612381
613487
614273
615800
622041
622375
623380
625519
639751
673960
681279
682545
807191
]
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 (416982 , 420925 , 427981 , 428202 , 431352 , 439623 , 445436 , 452535 , 460669 , 464542 , 472513 , 474784 , 479196 , 480521 , 482350 , 484519 , 489112 , 490944 , 492106 , 492267 , 492602 , 510286 , 513940 , 520445 , 523335 , 525226 , 531943 , 533557 , 534994 , 538848 , 541635 , 541661 , 541833 , 543419 , 547932 , 550100 , 560227 , 561480 , 563218 , 566248 , 571016 , 571213 , 590884 , 591135 , 599927 , 599965 , 603364 , 604161 , 607049 , 609085 , 609140 , 609953 , 612381 , 613487 , 614273 , 615800 , 622041 , 622375 , 623380 , 625519 , 639751 , 673960 , 681279 , 682545 , 807191 );
Copy
6
71.03 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
416982
420925
427981
428202
431352
439623
445436
452535
460669
464542
472513
474784
479196
480521
482350
484519
489112
490944
492106
492267
492602
510286
513940
520445
523335
525226
531943
533557
534994
538848
541635
541661
541833
543419
547932
550100
560227
561480
563218
566248
571016
571213
590884
591135
599927
599965
603364
604161
607049
609085
609140
609953
612381
613487
614273
615800
622041
622375
623380
625519
639751
673960
681279
682545
807191
]
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 (416982 , 420925 , 427981 , 428202 , 431352 , 439623 , 445436 , 452535 , 460669 , 464542 , 472513 , 474784 , 479196 , 480521 , 482350 , 484519 , 489112 , 490944 , 492106 , 492267 , 492602 , 510286 , 513940 , 520445 , 523335 , 525226 , 531943 , 533557 , 534994 , 538848 , 541635 , 541661 , 541833 , 543419 , 547932 , 550100 , 560227 , 561480 , 563218 , 566248 , 571016 , 571213 , 590884 , 591135 , 599927 , 599965 , 603364 , 604161 , 607049 , 609085 , 609140 , 609953 , 612381 , 613487 , 614273 , 615800 , 622041 , 622375 , 623380 , 625519 , 639751 , 673960 , 681279 , 682545 , 807191 );
Copy