3
9.15 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
814835
475986
511391
556840
576342
692636
693361
645852
663318
557213
779591
783237
759650
737156
447511
461774
479964
447521
466397
428368
523222
482379
456487
526385
552637
704044
577386
584813
610011
588953
622785
810665
443847
527678
519213
524176
397940
423633
518018
534166
511562
482368
552380
582371
716496
693269
622981
602562
615726
623501
786463
429817
445323
525061
472286
511336
517465
576628
544150
575472
625000
716394
451115
512295
582227
645918
478065
620674
589769
599545
]
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 (814835 , 475986 , 511391 , 556840 , 576342 , 692636 , 693361 , 645852 , 663318 , 557213 , 779591 , 783237 , 759650 , 737156 , 447511 , 461774 , 479964 , 447521 , 466397 , 428368 , 523222 , 482379 , 456487 , 526385 , 552637 , 704044 , 577386 , 584813 , 610011 , 588953 , 622785 , 810665 , 443847 , 527678 , 519213 , 524176 , 397940 , 423633 , 518018 , 534166 , 511562 , 482368 , 552380 , 582371 , 716496 , 693269 , 622981 , 602562 , 615726 , 623501 , 786463 , 429817 , 445323 , 525061 , 472286 , 511336 , 517465 , 576628 , 544150 , 575472 , 625000 , 716394 , 451115 , 512295 , 582227 , 645918 , 478065 , 620674 , 589769 , 599545 );
Copy
4
2.85 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
397940
423633
428368
429817
443847
445323
447511
447521
451115
456487
461774
466397
472286
475986
478065
479964
482368
482379
511336
511391
511562
512295
517465
518018
519213
523222
524176
525061
526385
527678
534166
544150
552380
552637
556840
557213
575472
576342
576628
577386
582227
582371
584813
588953
589769
599545
602562
610011
615726
620674
622785
622981
623501
625000
645852
645918
663318
692636
693269
693361
704044
716394
716496
737156
759650
779591
783237
786463
810665
814835
]
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 (397940 , 423633 , 428368 , 429817 , 443847 , 445323 , 447511 , 447521 , 451115 , 456487 , 461774 , 466397 , 472286 , 475986 , 478065 , 479964 , 482368 , 482379 , 511336 , 511391 , 511562 , 512295 , 517465 , 518018 , 519213 , 523222 , 524176 , 525061 , 526385 , 527678 , 534166 , 544150 , 552380 , 552637 , 556840 , 557213 , 575472 , 576342 , 576628 , 577386 , 582227 , 582371 , 584813 , 588953 , 589769 , 599545 , 602562 , 610011 , 615726 , 620674 , 622785 , 622981 , 623501 , 625000 , 645852 , 645918 , 663318 , 692636 , 693269 , 693361 , 704044 , 716394 , 716496 , 737156 , 759650 , 779591 , 783237 , 786463 , 810665 , 814835 );
Copy
5
82.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
397940
423633
428368
429817
443847
445323
447511
447521
451115
456487
461774
466397
472286
475986
478065
479964
482368
482379
511336
511391
511562
512295
517465
518018
519213
523222
524176
525061
526385
527678
534166
544150
552380
552637
556840
557213
575472
576342
576628
577386
582227
582371
584813
588953
589769
599545
602562
610011
615726
620674
622785
622981
623501
625000
645852
645918
663318
692636
693269
693361
704044
716394
716496
737156
759650
779591
783237
786463
810665
814835
]
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 (397940 , 423633 , 428368 , 429817 , 443847 , 445323 , 447511 , 447521 , 451115 , 456487 , 461774 , 466397 , 472286 , 475986 , 478065 , 479964 , 482368 , 482379 , 511336 , 511391 , 511562 , 512295 , 517465 , 518018 , 519213 , 523222 , 524176 , 525061 , 526385 , 527678 , 534166 , 544150 , 552380 , 552637 , 556840 , 557213 , 575472 , 576342 , 576628 , 577386 , 582227 , 582371 , 584813 , 588953 , 589769 , 599545 , 602562 , 610011 , 615726 , 620674 , 622785 , 622981 , 623501 , 625000 , 645852 , 645918 , 663318 , 692636 , 693269 , 693361 , 704044 , 716394 , 716496 , 737156 , 759650 , 779591 , 783237 , 786463 , 810665 , 814835 );
Copy