3
11.20 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
477784
809038
695891
602961
738364
772350
462786
517696
588764
784151
465133
509954
580365
709452
448508
405903
536439
578752
601032
738309
429406
457908
500936
535457
547546
756570
615042
482366
503501
489992
710956
447447
461636
487899
792553
465208
499786
544049
593382
464928
510037
540428
584380
695896
434438
497683
625169
518483
629213
423976
499712
415623
459946
458730
629571
529406
427971
664241
457887
579422
586358
452651
601365
390199
591349
565412
480368
]
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 (477784 , 809038 , 695891 , 602961 , 738364 , 772350 , 462786 , 517696 , 588764 , 784151 , 465133 , 509954 , 580365 , 709452 , 448508 , 405903 , 536439 , 578752 , 601032 , 738309 , 429406 , 457908 , 500936 , 535457 , 547546 , 756570 , 615042 , 482366 , 503501 , 489992 , 710956 , 447447 , 461636 , 487899 , 792553 , 465208 , 499786 , 544049 , 593382 , 464928 , 510037 , 540428 , 584380 , 695896 , 434438 , 497683 , 625169 , 518483 , 629213 , 423976 , 499712 , 415623 , 459946 , 458730 , 629571 , 529406 , 427971 , 664241 , 457887 , 579422 , 586358 , 452651 , 601365 , 390199 , 591349 , 565412 , 480368 );
Copy
4
2.03 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
390199
405903
415623
423976
427971
429406
434438
447447
448508
452651
457887
457908
458730
459946
461636
462786
464928
465133
465208
477784
480368
482366
487899
489992
497683
499712
499786
500936
503501
509954
510037
517696
518483
529406
535457
536439
540428
544049
547546
565412
578752
579422
580365
584380
586358
588764
591349
593382
601032
601365
602961
615042
625169
629213
629571
664241
695891
695896
709452
710956
738309
738364
756570
772350
784151
792553
809038
]
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 (390199 , 405903 , 415623 , 423976 , 427971 , 429406 , 434438 , 447447 , 448508 , 452651 , 457887 , 457908 , 458730 , 459946 , 461636 , 462786 , 464928 , 465133 , 465208 , 477784 , 480368 , 482366 , 487899 , 489992 , 497683 , 499712 , 499786 , 500936 , 503501 , 509954 , 510037 , 517696 , 518483 , 529406 , 535457 , 536439 , 540428 , 544049 , 547546 , 565412 , 578752 , 579422 , 580365 , 584380 , 586358 , 588764 , 591349 , 593382 , 601032 , 601365 , 602961 , 615042 , 625169 , 629213 , 629571 , 664241 , 695891 , 695896 , 709452 , 710956 , 738309 , 738364 , 756570 , 772350 , 784151 , 792553 , 809038 );
Copy
5
74.71 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
390199
405903
415623
423976
427971
429406
434438
447447
448508
452651
457887
457908
458730
459946
461636
462786
464928
465133
465208
477784
480368
482366
487899
489992
497683
499712
499786
500936
503501
509954
510037
517696
518483
529406
535457
536439
540428
544049
547546
565412
578752
579422
580365
584380
586358
588764
591349
593382
601032
601365
602961
615042
625169
629213
629571
664241
695891
695896
709452
710956
738309
738364
756570
772350
784151
792553
809038
]
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 (390199 , 405903 , 415623 , 423976 , 427971 , 429406 , 434438 , 447447 , 448508 , 452651 , 457887 , 457908 , 458730 , 459946 , 461636 , 462786 , 464928 , 465133 , 465208 , 477784 , 480368 , 482366 , 487899 , 489992 , 497683 , 499712 , 499786 , 500936 , 503501 , 509954 , 510037 , 517696 , 518483 , 529406 , 535457 , 536439 , 540428 , 544049 , 547546 , 565412 , 578752 , 579422 , 580365 , 584380 , 586358 , 588764 , 591349 , 593382 , 601032 , 601365 , 602961 , 615042 , 625169 , 629213 , 629571 , 664241 , 695891 , 695896 , 709452 , 710956 , 738309 , 738364 , 756570 , 772350 , 784151 , 792553 , 809038 );
Copy