4
14.42 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
644098
809496
440571
511085
503111
524376
487547
602174
512331
514459
730664
527295
424214
523320
625441
422154
552458
455351
510877
528802
551277
535805
551669
432510
421880
611450
524139
524371
423829
460744
555968
513885
571833
429847
463657
516496
499026
442518
535808
434792
439815
598601
422205
533726
574519
525941
513338
495140
668668
504908
601845
427166
522107
493019
620757
599392
525686
439641
439667
510505
439772
431730
473598
605151
552703
675588
593596
]
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 (644098 , 809496 , 440571 , 511085 , 503111 , 524376 , 487547 , 602174 , 512331 , 514459 , 730664 , 527295 , 424214 , 523320 , 625441 , 422154 , 552458 , 455351 , 510877 , 528802 , 551277 , 535805 , 551669 , 432510 , 421880 , 611450 , 524139 , 524371 , 423829 , 460744 , 555968 , 513885 , 571833 , 429847 , 463657 , 516496 , 499026 , 442518 , 535808 , 434792 , 439815 , 598601 , 422205 , 533726 , 574519 , 525941 , 513338 , 495140 , 668668 , 504908 , 601845 , 427166 , 522107 , 493019 , 620757 , 599392 , 525686 , 439641 , 439667 , 510505 , 439772 , 431730 , 473598 , 605151 , 552703 , 675588 , 593596 );
Copy
5
3.30 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
421880
422154
422205
423829
424214
427166
429847
431730
432510
434792
439641
439667
439772
439815
440571
442518
455351
460744
463657
473598
487547
493019
495140
499026
503111
504908
510505
510877
511085
512331
513338
513885
514459
516496
522107
523320
524139
524371
524376
525686
525941
527295
528802
533726
535805
535808
551277
551669
552458
552703
555968
571833
574519
593596
598601
599392
601845
602174
605151
611450
620757
625441
644098
668668
675588
730664
809496
]
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 (421880 , 422154 , 422205 , 423829 , 424214 , 427166 , 429847 , 431730 , 432510 , 434792 , 439641 , 439667 , 439772 , 439815 , 440571 , 442518 , 455351 , 460744 , 463657 , 473598 , 487547 , 493019 , 495140 , 499026 , 503111 , 504908 , 510505 , 510877 , 511085 , 512331 , 513338 , 513885 , 514459 , 516496 , 522107 , 523320 , 524139 , 524371 , 524376 , 525686 , 525941 , 527295 , 528802 , 533726 , 535805 , 535808 , 551277 , 551669 , 552458 , 552703 , 555968 , 571833 , 574519 , 593596 , 598601 , 599392 , 601845 , 602174 , 605151 , 611450 , 620757 , 625441 , 644098 , 668668 , 675588 , 730664 , 809496 );
Copy
6
110.84 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
421880
422154
422205
423829
424214
427166
429847
431730
432510
434792
439641
439667
439772
439815
440571
442518
455351
460744
463657
473598
487547
493019
495140
499026
503111
504908
510505
510877
511085
512331
513338
513885
514459
516496
522107
523320
524139
524371
524376
525686
525941
527295
528802
533726
535805
535808
551277
551669
552458
552703
555968
571833
574519
593596
598601
599392
601845
602174
605151
611450
620757
625441
644098
668668
675588
730664
809496
]
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 (421880 , 422154 , 422205 , 423829 , 424214 , 427166 , 429847 , 431730 , 432510 , 434792 , 439641 , 439667 , 439772 , 439815 , 440571 , 442518 , 455351 , 460744 , 463657 , 473598 , 487547 , 493019 , 495140 , 499026 , 503111 , 504908 , 510505 , 510877 , 511085 , 512331 , 513338 , 513885 , 514459 , 516496 , 522107 , 523320 , 524139 , 524371 , 524376 , 525686 , 525941 , 527295 , 528802 , 533726 , 535805 , 535808 , 551277 , 551669 , 552458 , 552703 , 555968 , 571833 , 574519 , 593596 , 598601 , 599392 , 601845 , 602174 , 605151 , 611450 , 620757 , 625441 , 644098 , 668668 , 675588 , 730664 , 809496 );
Copy