3
15.32 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
512085
470506
474020
420758
449886
520482
643933
511733
485463
659215
595783
418519
455197
520011
509513
518304
498459
585515
428895
467975
484583
520870
488380
544035
509664
597867
514815
472793
545538
462526
546761
589036
629781
640687
527989
548519
393055
482080
435226
561382
464702
564825
483208
507711
520911
509507
531316
675471
566252
513506
509969
516820
548226
467009
616873
462497
528452
421287
608106
566248
464327
565550
557021
611375
620754
603923
507596
529162
419628
546114
]
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 (512085 , 470506 , 474020 , 420758 , 449886 , 520482 , 643933 , 511733 , 485463 , 659215 , 595783 , 418519 , 455197 , 520011 , 509513 , 518304 , 498459 , 585515 , 428895 , 467975 , 484583 , 520870 , 488380 , 544035 , 509664 , 597867 , 514815 , 472793 , 545538 , 462526 , 546761 , 589036 , 629781 , 640687 , 527989 , 548519 , 393055 , 482080 , 435226 , 561382 , 464702 , 564825 , 483208 , 507711 , 520911 , 509507 , 531316 , 675471 , 566252 , 513506 , 509969 , 516820 , 548226 , 467009 , 616873 , 462497 , 528452 , 421287 , 608106 , 566248 , 464327 , 565550 , 557021 , 611375 , 620754 , 603923 , 507596 , 529162 , 419628 , 546114 );
Copy
4
2.82 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
393055
418519
419628
420758
421287
428895
435226
449886
455197
462497
462526
464327
464702
467009
467975
470506
472793
474020
482080
483208
484583
485463
488380
498459
507596
507711
509507
509513
509664
509969
511733
512085
513506
514815
516820
518304
520011
520482
520870
520911
527989
528452
529162
531316
544035
545538
546114
546761
548226
548519
557021
561382
564825
565550
566248
566252
585515
589036
595783
597867
603923
608106
611375
616873
620754
629781
640687
643933
659215
675471
]
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 (393055 , 418519 , 419628 , 420758 , 421287 , 428895 , 435226 , 449886 , 455197 , 462497 , 462526 , 464327 , 464702 , 467009 , 467975 , 470506 , 472793 , 474020 , 482080 , 483208 , 484583 , 485463 , 488380 , 498459 , 507596 , 507711 , 509507 , 509513 , 509664 , 509969 , 511733 , 512085 , 513506 , 514815 , 516820 , 518304 , 520011 , 520482 , 520870 , 520911 , 527989 , 528452 , 529162 , 531316 , 544035 , 545538 , 546114 , 546761 , 548226 , 548519 , 557021 , 561382 , 564825 , 565550 , 566248 , 566252 , 585515 , 589036 , 595783 , 597867 , 603923 , 608106 , 611375 , 616873 , 620754 , 629781 , 640687 , 643933 , 659215 , 675471 );
Copy
5
77.45 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
393055
418519
419628
420758
421287
428895
435226
449886
455197
462497
462526
464327
464702
467009
467975
470506
472793
474020
482080
483208
484583
485463
488380
498459
507596
507711
509507
509513
509664
509969
511733
512085
513506
514815
516820
518304
520011
520482
520870
520911
527989
528452
529162
531316
544035
545538
546114
546761
548226
548519
557021
561382
564825
565550
566248
566252
585515
589036
595783
597867
603923
608106
611375
616873
620754
629781
640687
643933
659215
675471
]
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 (393055 , 418519 , 419628 , 420758 , 421287 , 428895 , 435226 , 449886 , 455197 , 462497 , 462526 , 464327 , 464702 , 467009 , 467975 , 470506 , 472793 , 474020 , 482080 , 483208 , 484583 , 485463 , 488380 , 498459 , 507596 , 507711 , 509507 , 509513 , 509664 , 509969 , 511733 , 512085 , 513506 , 514815 , 516820 , 518304 , 520011 , 520482 , 520870 , 520911 , 527989 , 528452 , 529162 , 531316 , 544035 , 545538 , 546114 , 546761 , 548226 , 548519 , 557021 , 561382 , 564825 , 565550 , 566248 , 566252 , 585515 , 589036 , 595783 , 597867 , 603923 , 608106 , 611375 , 616873 , 620754 , 629781 , 640687 , 643933 , 659215 , 675471 );
Copy