3
12.68 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
531203
501242
681691
495703
501248
548226
482534
541379
472505
609795
676022
556778
532645
677783
401919
490201
507880
644913
541854
677307
485149
557985
583964
646176
515262
578397
676634
514717
518592
518593
532643
541419
518468
563866
617427
679801
518490
540486
532655
572771
675017
588244
600006
639774
532680
531187
586933
639744
532662
556741
639732
518586
531105
532672
528361
674994
624270
622184
515568
533559
534994
603255
597216
513951
532666
632563
578395
521575
582248
582229
499112
483355
]
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 (531203 , 501242 , 681691 , 495703 , 501248 , 548226 , 482534 , 541379 , 472505 , 609795 , 676022 , 556778 , 532645 , 677783 , 401919 , 490201 , 507880 , 644913 , 541854 , 677307 , 485149 , 557985 , 583964 , 646176 , 515262 , 578397 , 676634 , 514717 , 518592 , 518593 , 532643 , 541419 , 518468 , 563866 , 617427 , 679801 , 518490 , 540486 , 532655 , 572771 , 675017 , 588244 , 600006 , 639774 , 532680 , 531187 , 586933 , 639744 , 532662 , 556741 , 639732 , 518586 , 531105 , 532672 , 528361 , 674994 , 624270 , 622184 , 515568 , 533559 , 534994 , 603255 , 597216 , 513951 , 532666 , 632563 , 578395 , 521575 , 582248 , 582229 , 499112 , 483355 );
Copy
4
2.53 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
401919
472505
482534
483355
485149
490201
495703
499112
501242
501248
507880
513951
514717
515262
515568
518468
518490
518586
518592
518593
521575
528361
531105
531187
531203
532643
532645
532655
532662
532666
532672
532680
533559
534994
540486
541379
541419
541854
548226
556741
556778
557985
563866
572771
578395
578397
582229
582248
583964
586933
588244
597216
600006
603255
609795
617427
622184
624270
632563
639732
639744
639774
644913
646176
674994
675017
676022
676634
677307
677783
679801
681691
]
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 (401919 , 472505 , 482534 , 483355 , 485149 , 490201 , 495703 , 499112 , 501242 , 501248 , 507880 , 513951 , 514717 , 515262 , 515568 , 518468 , 518490 , 518586 , 518592 , 518593 , 521575 , 528361 , 531105 , 531187 , 531203 , 532643 , 532645 , 532655 , 532662 , 532666 , 532672 , 532680 , 533559 , 534994 , 540486 , 541379 , 541419 , 541854 , 548226 , 556741 , 556778 , 557985 , 563866 , 572771 , 578395 , 578397 , 582229 , 582248 , 583964 , 586933 , 588244 , 597216 , 600006 , 603255 , 609795 , 617427 , 622184 , 624270 , 632563 , 639732 , 639744 , 639774 , 644913 , 646176 , 674994 , 675017 , 676022 , 676634 , 677307 , 677783 , 679801 , 681691 );
Copy
5
120.10 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
401919
472505
482534
483355
485149
490201
495703
499112
501242
501248
507880
513951
514717
515262
515568
518468
518490
518586
518592
518593
521575
528361
531105
531187
531203
532643
532645
532655
532662
532666
532672
532680
533559
534994
540486
541379
541419
541854
548226
556741
556778
557985
563866
572771
578395
578397
582229
582248
583964
586933
588244
597216
600006
603255
609795
617427
622184
624270
632563
639732
639744
639774
644913
646176
674994
675017
676022
676634
677307
677783
679801
681691
]
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 (401919 , 472505 , 482534 , 483355 , 485149 , 490201 , 495703 , 499112 , 501242 , 501248 , 507880 , 513951 , 514717 , 515262 , 515568 , 518468 , 518490 , 518586 , 518592 , 518593 , 521575 , 528361 , 531105 , 531187 , 531203 , 532643 , 532645 , 532655 , 532662 , 532666 , 532672 , 532680 , 533559 , 534994 , 540486 , 541379 , 541419 , 541854 , 548226 , 556741 , 556778 , 557985 , 563866 , 572771 , 578395 , 578397 , 582229 , 582248 , 583964 , 586933 , 588244 , 597216 , 600006 , 603255 , 609795 , 617427 , 622184 , 624270 , 632563 , 639732 , 639744 , 639774 , 644913 , 646176 , 674994 , 675017 , 676022 , 676634 , 677307 , 677783 , 679801 , 681691 );
Copy