3
13.82 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
726543
716030
464746
445455
424648
458694
439912
427209
484398
487439
495710
485788
496934
420891
435844
584990
458905
534968
528146
467572
557948
573394
670564
582227
586024
610661
726487
470342
476417
504930
494779
509033
501500
504161
595799
477355
519171
565776
577931
709260
421254
439925
484748
495741
529271
502489
583371
583964
467581
514638
524141
523335
432751
609953
605445
607919
521784
521438
687163
528030
557947
622832
520354
514997
486870
]
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 (726543 , 716030 , 464746 , 445455 , 424648 , 458694 , 439912 , 427209 , 484398 , 487439 , 495710 , 485788 , 496934 , 420891 , 435844 , 584990 , 458905 , 534968 , 528146 , 467572 , 557948 , 573394 , 670564 , 582227 , 586024 , 610661 , 726487 , 470342 , 476417 , 504930 , 494779 , 509033 , 501500 , 504161 , 595799 , 477355 , 519171 , 565776 , 577931 , 709260 , 421254 , 439925 , 484748 , 495741 , 529271 , 502489 , 583371 , 583964 , 467581 , 514638 , 524141 , 523335 , 432751 , 609953 , 605445 , 607919 , 521784 , 521438 , 687163 , 528030 , 557947 , 622832 , 520354 , 514997 , 486870 );
Copy
4
2.54 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
420891
421254
424648
427209
432751
435844
439912
439925
445455
458694
458905
464746
467572
467581
470342
476417
477355
484398
484748
485788
486870
487439
494779
495710
495741
496934
501500
502489
504161
504930
509033
514638
514997
519171
520354
521438
521784
523335
524141
528030
528146
529271
534968
557947
557948
565776
573394
577931
582227
583371
583964
584990
586024
595799
605445
607919
609953
610661
622832
670564
687163
709260
716030
726487
726543
]
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 (420891 , 421254 , 424648 , 427209 , 432751 , 435844 , 439912 , 439925 , 445455 , 458694 , 458905 , 464746 , 467572 , 467581 , 470342 , 476417 , 477355 , 484398 , 484748 , 485788 , 486870 , 487439 , 494779 , 495710 , 495741 , 496934 , 501500 , 502489 , 504161 , 504930 , 509033 , 514638 , 514997 , 519171 , 520354 , 521438 , 521784 , 523335 , 524141 , 528030 , 528146 , 529271 , 534968 , 557947 , 557948 , 565776 , 573394 , 577931 , 582227 , 583371 , 583964 , 584990 , 586024 , 595799 , 605445 , 607919 , 609953 , 610661 , 622832 , 670564 , 687163 , 709260 , 716030 , 726487 , 726543 );
Copy
5
106.48 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
420891
421254
424648
427209
432751
435844
439912
439925
445455
458694
458905
464746
467572
467581
470342
476417
477355
484398
484748
485788
486870
487439
494779
495710
495741
496934
501500
502489
504161
504930
509033
514638
514997
519171
520354
521438
521784
523335
524141
528030
528146
529271
534968
557947
557948
565776
573394
577931
582227
583371
583964
584990
586024
595799
605445
607919
609953
610661
622832
670564
687163
709260
716030
726487
726543
]
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 (420891 , 421254 , 424648 , 427209 , 432751 , 435844 , 439912 , 439925 , 445455 , 458694 , 458905 , 464746 , 467572 , 467581 , 470342 , 476417 , 477355 , 484398 , 484748 , 485788 , 486870 , 487439 , 494779 , 495710 , 495741 , 496934 , 501500 , 502489 , 504161 , 504930 , 509033 , 514638 , 514997 , 519171 , 520354 , 521438 , 521784 , 523335 , 524141 , 528030 , 528146 , 529271 , 534968 , 557947 , 557948 , 565776 , 573394 , 577931 , 582227 , 583371 , 583964 , 584990 , 586024 , 595799 , 605445 , 607919 , 609953 , 610661 , 622832 , 670564 , 687163 , 709260 , 716030 , 726487 , 726543 );
Copy