3
12.67 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
417056
493155
526494
569302
578442
457428
454439
469347
439713
483628
440958
439684
443358
440876
424047
526051
456708
482195
603317
439677
446964
428116
457884
460281
447959
421833
422202
422208
433323
593764
566110
439767
439676
427543
420635
417836
506061
516327
439785
473889
627817
605708
491348
445838
455785
610588
566651
428752
464975
417840
747054
592614
485755
422179
439774
526052
527908
544801
526895
526523
442683
423190
438054
473476
433038
623150
419956
501228
464006
447276
579429
444916
455411
491436
]
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 (417056 , 493155 , 526494 , 569302 , 578442 , 457428 , 454439 , 469347 , 439713 , 483628 , 440958 , 439684 , 443358 , 440876 , 424047 , 526051 , 456708 , 482195 , 603317 , 439677 , 446964 , 428116 , 457884 , 460281 , 447959 , 421833 , 422202 , 422208 , 433323 , 593764 , 566110 , 439767 , 439676 , 427543 , 420635 , 417836 , 506061 , 516327 , 439785 , 473889 , 627817 , 605708 , 491348 , 445838 , 455785 , 610588 , 566651 , 428752 , 464975 , 417840 , 747054 , 592614 , 485755 , 422179 , 439774 , 526052 , 527908 , 544801 , 526895 , 526523 , 442683 , 423190 , 438054 , 473476 , 433038 , 623150 , 419956 , 501228 , 464006 , 447276 , 579429 , 444916 , 455411 , 491436 );
Copy
4
3.39 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
417056
417836
417840
419956
420635
421833
422179
422202
422208
423190
424047
427543
428116
428752
433038
433323
438054
439676
439677
439684
439713
439767
439774
439785
440876
440958
442683
443358
444916
445838
446964
447276
447959
454439
455411
455785
456708
457428
457884
460281
464006
464975
469347
473476
473889
482195
483628
485755
491348
491436
493155
501228
506061
516327
526051
526052
526494
526523
526895
527908
544801
566110
566651
569302
578442
579429
592614
593764
603317
605708
610588
623150
627817
747054
]
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 (417056 , 417836 , 417840 , 419956 , 420635 , 421833 , 422179 , 422202 , 422208 , 423190 , 424047 , 427543 , 428116 , 428752 , 433038 , 433323 , 438054 , 439676 , 439677 , 439684 , 439713 , 439767 , 439774 , 439785 , 440876 , 440958 , 442683 , 443358 , 444916 , 445838 , 446964 , 447276 , 447959 , 454439 , 455411 , 455785 , 456708 , 457428 , 457884 , 460281 , 464006 , 464975 , 469347 , 473476 , 473889 , 482195 , 483628 , 485755 , 491348 , 491436 , 493155 , 501228 , 506061 , 516327 , 526051 , 526052 , 526494 , 526523 , 526895 , 527908 , 544801 , 566110 , 566651 , 569302 , 578442 , 579429 , 592614 , 593764 , 603317 , 605708 , 610588 , 623150 , 627817 , 747054 );
Copy
5
104.76 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
417056
417836
417840
419956
420635
421833
422179
422202
422208
423190
424047
427543
428116
428752
433038
433323
438054
439676
439677
439684
439713
439767
439774
439785
440876
440958
442683
443358
444916
445838
446964
447276
447959
454439
455411
455785
456708
457428
457884
460281
464006
464975
469347
473476
473889
482195
483628
485755
491348
491436
493155
501228
506061
516327
526051
526052
526494
526523
526895
527908
544801
566110
566651
569302
578442
579429
592614
593764
603317
605708
610588
623150
627817
747054
]
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 (417056 , 417836 , 417840 , 419956 , 420635 , 421833 , 422179 , 422202 , 422208 , 423190 , 424047 , 427543 , 428116 , 428752 , 433038 , 433323 , 438054 , 439676 , 439677 , 439684 , 439713 , 439767 , 439774 , 439785 , 440876 , 440958 , 442683 , 443358 , 444916 , 445838 , 446964 , 447276 , 447959 , 454439 , 455411 , 455785 , 456708 , 457428 , 457884 , 460281 , 464006 , 464975 , 469347 , 473476 , 473889 , 482195 , 483628 , 485755 , 491348 , 491436 , 493155 , 501228 , 506061 , 516327 , 526051 , 526052 , 526494 , 526523 , 526895 , 527908 , 544801 , 566110 , 566651 , 569302 , 578442 , 579429 , 592614 , 593764 , 603317 , 605708 , 610588 , 623150 , 627817 , 747054 );
Copy