3
15.34 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
530796
500799
500902
531144
494481
507376
566855
577371
545608
648839
646029
676623
680484
641678
642002
633799
414604
520911
439623
445409
532760
533928
535026
533372
531259
532674
678117
651666
668505
675007
582540
637442
642063
639824
639712
600022
629770
611264
433001
466386
415539
448840
499104
539319
530808
541854
541848
544800
556046
674983
600218
803455
635215
642705
492111
445416
533363
540535
675010
635243
639334
598859
636300
600257
642037
533746
529792
503866
602249
463087
]
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 (530796 , 500799 , 500902 , 531144 , 494481 , 507376 , 566855 , 577371 , 545608 , 648839 , 646029 , 676623 , 680484 , 641678 , 642002 , 633799 , 414604 , 520911 , 439623 , 445409 , 532760 , 533928 , 535026 , 533372 , 531259 , 532674 , 678117 , 651666 , 668505 , 675007 , 582540 , 637442 , 642063 , 639824 , 639712 , 600022 , 629770 , 611264 , 433001 , 466386 , 415539 , 448840 , 499104 , 539319 , 530808 , 541854 , 541848 , 544800 , 556046 , 674983 , 600218 , 803455 , 635215 , 642705 , 492111 , 445416 , 533363 , 540535 , 675010 , 635243 , 639334 , 598859 , 636300 , 600257 , 642037 , 533746 , 529792 , 503866 , 602249 , 463087 );
Copy
4
2.38 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
414604
415539
433001
439623
445409
445416
448840
463087
466386
492111
494481
499104
500799
500902
503866
507376
520911
529792
530796
530808
531144
531259
532674
532760
533363
533372
533746
533928
535026
539319
540535
541848
541854
544800
545608
556046
566855
577371
582540
598859
600022
600218
600257
602249
611264
629770
633799
635215
635243
636300
637442
639334
639712
639824
641678
642002
642037
642063
642705
646029
648839
651666
668505
674983
675007
675010
676623
678117
680484
803455
]
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 (414604 , 415539 , 433001 , 439623 , 445409 , 445416 , 448840 , 463087 , 466386 , 492111 , 494481 , 499104 , 500799 , 500902 , 503866 , 507376 , 520911 , 529792 , 530796 , 530808 , 531144 , 531259 , 532674 , 532760 , 533363 , 533372 , 533746 , 533928 , 535026 , 539319 , 540535 , 541848 , 541854 , 544800 , 545608 , 556046 , 566855 , 577371 , 582540 , 598859 , 600022 , 600218 , 600257 , 602249 , 611264 , 629770 , 633799 , 635215 , 635243 , 636300 , 637442 , 639334 , 639712 , 639824 , 641678 , 642002 , 642037 , 642063 , 642705 , 646029 , 648839 , 651666 , 668505 , 674983 , 675007 , 675010 , 676623 , 678117 , 680484 , 803455 );
Copy
5
74.02 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
414604
415539
433001
439623
445409
445416
448840
463087
466386
492111
494481
499104
500799
500902
503866
507376
520911
529792
530796
530808
531144
531259
532674
532760
533363
533372
533746
533928
535026
539319
540535
541848
541854
544800
545608
556046
566855
577371
582540
598859
600022
600218
600257
602249
611264
629770
633799
635215
635243
636300
637442
639334
639712
639824
641678
642002
642037
642063
642705
646029
648839
651666
668505
674983
675007
675010
676623
678117
680484
803455
]
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 (414604 , 415539 , 433001 , 439623 , 445409 , 445416 , 448840 , 463087 , 466386 , 492111 , 494481 , 499104 , 500799 , 500902 , 503866 , 507376 , 520911 , 529792 , 530796 , 530808 , 531144 , 531259 , 532674 , 532760 , 533363 , 533372 , 533746 , 533928 , 535026 , 539319 , 540535 , 541848 , 541854 , 544800 , 545608 , 556046 , 566855 , 577371 , 582540 , 598859 , 600022 , 600218 , 600257 , 602249 , 611264 , 629770 , 633799 , 635215 , 635243 , 636300 , 637442 , 639334 , 639712 , 639824 , 641678 , 642002 , 642037 , 642063 , 642705 , 646029 , 648839 , 651666 , 668505 , 674983 , 675007 , 675010 , 676623 , 678117 , 680484 , 803455 );
Copy