3
20.19 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
479592
190919
281450
168977
538044
365903
388121
394013
566083
423804
501434
507114
396554
188455
387393
313189
487880
435948
461654
494443
390593
496763
385962
465835
458803
150654
465869
470569
597063
384526
507746
514085
474267
556425
415507
444545
181420
459724
521967
482923
522952
525901
436250
460833
461579
466110
496756
420139
508942
427709
524004
494967
525893
432568
442081
422732
390413
438762
592645
421922
470034
474632
451372
655087
524836
509100
510668
520354
585007
465336
]
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 (479592 , 190919 , 281450 , 168977 , 538044 , 365903 , 388121 , 394013 , 566083 , 423804 , 501434 , 507114 , 396554 , 188455 , 387393 , 313189 , 487880 , 435948 , 461654 , 494443 , 390593 , 496763 , 385962 , 465835 , 458803 , 150654 , 465869 , 470569 , 597063 , 384526 , 507746 , 514085 , 474267 , 556425 , 415507 , 444545 , 181420 , 459724 , 521967 , 482923 , 522952 , 525901 , 436250 , 460833 , 461579 , 466110 , 496756 , 420139 , 508942 , 427709 , 524004 , 494967 , 525893 , 432568 , 442081 , 422732 , 390413 , 438762 , 592645 , 421922 , 470034 , 474632 , 451372 , 655087 , 524836 , 509100 , 510668 , 520354 , 585007 , 465336 );
Copy
4
3.07 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
150654
168977
181420
188455
190919
281450
313189
365903
384526
385962
387393
388121
390413
390593
394013
396554
415507
420139
421922
422732
423804
427709
432568
435948
436250
438762
442081
444545
451372
458803
459724
460833
461579
461654
465336
465835
465869
466110
470034
470569
474267
474632
479592
482923
487880
494443
494967
496756
496763
501434
507114
507746
508942
509100
510668
514085
520354
521967
522952
524004
524836
525893
525901
538044
556425
566083
585007
592645
597063
655087
]
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 (150654 , 168977 , 181420 , 188455 , 190919 , 281450 , 313189 , 365903 , 384526 , 385962 , 387393 , 388121 , 390413 , 390593 , 394013 , 396554 , 415507 , 420139 , 421922 , 422732 , 423804 , 427709 , 432568 , 435948 , 436250 , 438762 , 442081 , 444545 , 451372 , 458803 , 459724 , 460833 , 461579 , 461654 , 465336 , 465835 , 465869 , 466110 , 470034 , 470569 , 474267 , 474632 , 479592 , 482923 , 487880 , 494443 , 494967 , 496756 , 496763 , 501434 , 507114 , 507746 , 508942 , 509100 , 510668 , 514085 , 520354 , 521967 , 522952 , 524004 , 524836 , 525893 , 525901 , 538044 , 556425 , 566083 , 585007 , 592645 , 597063 , 655087 );
Copy
5
153.78 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
150654
168977
181420
188455
190919
281450
313189
365903
384526
385962
387393
388121
390413
390593
394013
396554
415507
420139
421922
422732
423804
427709
432568
435948
436250
438762
442081
444545
451372
458803
459724
460833
461579
461654
465336
465835
465869
466110
470034
470569
474267
474632
479592
482923
487880
494443
494967
496756
496763
501434
507114
507746
508942
509100
510668
514085
520354
521967
522952
524004
524836
525893
525901
538044
556425
566083
585007
592645
597063
655087
]
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 (150654 , 168977 , 181420 , 188455 , 190919 , 281450 , 313189 , 365903 , 384526 , 385962 , 387393 , 388121 , 390413 , 390593 , 394013 , 396554 , 415507 , 420139 , 421922 , 422732 , 423804 , 427709 , 432568 , 435948 , 436250 , 438762 , 442081 , 444545 , 451372 , 458803 , 459724 , 460833 , 461579 , 461654 , 465336 , 465835 , 465869 , 466110 , 470034 , 470569 , 474267 , 474632 , 479592 , 482923 , 487880 , 494443 , 494967 , 496756 , 496763 , 501434 , 507114 , 507746 , 508942 , 509100 , 510668 , 514085 , 520354 , 521967 , 522952 , 524004 , 524836 , 525893 , 525901 , 538044 , 556425 , 566083 , 585007 , 592645 , 597063 , 655087 );
Copy