3
11.98 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
805713
500331
499800
643384
802459
469581
555889
452154
395560
533198
788959
446967
705558
688577
591048
462425
814936
404600
564764
480777
593465
805383
469585
469586
531505
469554
815544
540476
482507
815726
815966
442363
397023
409916
820452
395534
815955
815411
816068
454888
407616
432020
409881
477887
816087
520979
247347
414000
448688
382542
469574
469582
395679
815237
444468
815608
421536
562884
486262
427245
191356
404612
445060
466958
468833
459128
458006
478811
480367
483440
523162
492269
517267
]
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 (805713 , 500331 , 499800 , 643384 , 802459 , 469581 , 555889 , 452154 , 395560 , 533198 , 788959 , 446967 , 705558 , 688577 , 591048 , 462425 , 814936 , 404600 , 564764 , 480777 , 593465 , 805383 , 469585 , 469586 , 531505 , 469554 , 815544 , 540476 , 482507 , 815726 , 815966 , 442363 , 397023 , 409916 , 820452 , 395534 , 815955 , 815411 , 816068 , 454888 , 407616 , 432020 , 409881 , 477887 , 816087 , 520979 , 247347 , 414000 , 448688 , 382542 , 469574 , 469582 , 395679 , 815237 , 444468 , 815608 , 421536 , 562884 , 486262 , 427245 , 191356 , 404612 , 445060 , 466958 , 468833 , 459128 , 458006 , 478811 , 480367 , 483440 , 523162 , 492269 , 517267 );
Copy
4
2.80 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
191356
247347
382542
395534
395560
395679
397023
404600
404612
407616
409881
409916
414000
421536
427245
432020
442363
444468
445060
446967
448688
452154
454888
458006
459128
462425
466958
468833
469554
469574
469581
469582
469585
469586
477887
478811
480367
480777
482507
483440
486262
492269
499800
500331
517267
520979
523162
531505
533198
540476
555889
562884
564764
591048
593465
643384
688577
705558
788959
802459
805383
805713
814936
815237
815411
815544
815608
815726
815955
815966
816068
816087
820452
]
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 (191356 , 247347 , 382542 , 395534 , 395560 , 395679 , 397023 , 404600 , 404612 , 407616 , 409881 , 409916 , 414000 , 421536 , 427245 , 432020 , 442363 , 444468 , 445060 , 446967 , 448688 , 452154 , 454888 , 458006 , 459128 , 462425 , 466958 , 468833 , 469554 , 469574 , 469581 , 469582 , 469585 , 469586 , 477887 , 478811 , 480367 , 480777 , 482507 , 483440 , 486262 , 492269 , 499800 , 500331 , 517267 , 520979 , 523162 , 531505 , 533198 , 540476 , 555889 , 562884 , 564764 , 591048 , 593465 , 643384 , 688577 , 705558 , 788959 , 802459 , 805383 , 805713 , 814936 , 815237 , 815411 , 815544 , 815608 , 815726 , 815955 , 815966 , 816068 , 816087 , 820452 );
Copy
5
92.27 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
191356
247347
382542
395534
395560
395679
397023
404600
404612
407616
409881
409916
414000
421536
427245
432020
442363
444468
445060
446967
448688
452154
454888
458006
459128
462425
466958
468833
469554
469574
469581
469582
469585
469586
477887
478811
480367
480777
482507
483440
486262
492269
499800
500331
517267
520979
523162
531505
533198
540476
555889
562884
564764
591048
593465
643384
688577
705558
788959
802459
805383
805713
814936
815237
815411
815544
815608
815726
815955
815966
816068
816087
820452
]
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 (191356 , 247347 , 382542 , 395534 , 395560 , 395679 , 397023 , 404600 , 404612 , 407616 , 409881 , 409916 , 414000 , 421536 , 427245 , 432020 , 442363 , 444468 , 445060 , 446967 , 448688 , 452154 , 454888 , 458006 , 459128 , 462425 , 466958 , 468833 , 469554 , 469574 , 469581 , 469582 , 469585 , 469586 , 477887 , 478811 , 480367 , 480777 , 482507 , 483440 , 486262 , 492269 , 499800 , 500331 , 517267 , 520979 , 523162 , 531505 , 533198 , 540476 , 555889 , 562884 , 564764 , 591048 , 593465 , 643384 , 688577 , 705558 , 788959 , 802459 , 805383 , 805713 , 814936 , 815237 , 815411 , 815544 , 815608 , 815726 , 815955 , 815966 , 816068 , 816087 , 820452 );
Copy