3
14.70 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
799936
471639
486198
412297
430190
444844
523405
518559
454871
519038
491978
407362
433852
448687
516782
519007
699025
617190
728452
494731
496036
495198
599659
444003
550571
602569
513148
550230
565050
491963
486594
484519
412288
529212
564826
395666
425523
489082
523030
421907
524281
420635
540791
412289
431350
456600
460673
623616
603878
474035
514824
502995
591585
429409
466963
424780
404742
519632
486540
482350
518960
605953
623818
534645
517000
509666
675006
517008
520008
485313
560511
499882
]
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 (799936 , 471639 , 486198 , 412297 , 430190 , 444844 , 523405 , 518559 , 454871 , 519038 , 491978 , 407362 , 433852 , 448687 , 516782 , 519007 , 699025 , 617190 , 728452 , 494731 , 496036 , 495198 , 599659 , 444003 , 550571 , 602569 , 513148 , 550230 , 565050 , 491963 , 486594 , 484519 , 412288 , 529212 , 564826 , 395666 , 425523 , 489082 , 523030 , 421907 , 524281 , 420635 , 540791 , 412289 , 431350 , 456600 , 460673 , 623616 , 603878 , 474035 , 514824 , 502995 , 591585 , 429409 , 466963 , 424780 , 404742 , 519632 , 486540 , 482350 , 518960 , 605953 , 623818 , 534645 , 517000 , 509666 , 675006 , 517008 , 520008 , 485313 , 560511 , 499882 );
Copy
4
3.15 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
395666
404742
407362
412288
412289
412297
420635
421907
424780
425523
429409
430190
431350
433852
444003
444844
448687
454871
456600
460673
466963
471639
474035
482350
484519
485313
486198
486540
486594
489082
491963
491978
494731
495198
496036
499882
502995
509666
513148
514824
516782
517000
517008
518559
518960
519007
519038
519632
520008
523030
523405
524281
529212
534645
540791
550230
550571
560511
564826
565050
591585
599659
602569
603878
605953
617190
623616
623818
675006
699025
728452
799936
]
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 (395666 , 404742 , 407362 , 412288 , 412289 , 412297 , 420635 , 421907 , 424780 , 425523 , 429409 , 430190 , 431350 , 433852 , 444003 , 444844 , 448687 , 454871 , 456600 , 460673 , 466963 , 471639 , 474035 , 482350 , 484519 , 485313 , 486198 , 486540 , 486594 , 489082 , 491963 , 491978 , 494731 , 495198 , 496036 , 499882 , 502995 , 509666 , 513148 , 514824 , 516782 , 517000 , 517008 , 518559 , 518960 , 519007 , 519038 , 519632 , 520008 , 523030 , 523405 , 524281 , 529212 , 534645 , 540791 , 550230 , 550571 , 560511 , 564826 , 565050 , 591585 , 599659 , 602569 , 603878 , 605953 , 617190 , 623616 , 623818 , 675006 , 699025 , 728452 , 799936 );
Copy
5
123.91 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
395666
404742
407362
412288
412289
412297
420635
421907
424780
425523
429409
430190
431350
433852
444003
444844
448687
454871
456600
460673
466963
471639
474035
482350
484519
485313
486198
486540
486594
489082
491963
491978
494731
495198
496036
499882
502995
509666
513148
514824
516782
517000
517008
518559
518960
519007
519038
519632
520008
523030
523405
524281
529212
534645
540791
550230
550571
560511
564826
565050
591585
599659
602569
603878
605953
617190
623616
623818
675006
699025
728452
799936
]
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 (395666 , 404742 , 407362 , 412288 , 412289 , 412297 , 420635 , 421907 , 424780 , 425523 , 429409 , 430190 , 431350 , 433852 , 444003 , 444844 , 448687 , 454871 , 456600 , 460673 , 466963 , 471639 , 474035 , 482350 , 484519 , 485313 , 486198 , 486540 , 486594 , 489082 , 491963 , 491978 , 494731 , 495198 , 496036 , 499882 , 502995 , 509666 , 513148 , 514824 , 516782 , 517000 , 517008 , 518559 , 518960 , 519007 , 519038 , 519632 , 520008 , 523030 , 523405 , 524281 , 529212 , 534645 , 540791 , 550230 , 550571 , 560511 , 564826 , 565050 , 591585 , 599659 , 602569 , 603878 , 605953 , 617190 , 623616 , 623818 , 675006 , 699025 , 728452 , 799936 );
Copy