4
11.91 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
187956
408446
443421
447699
188150
465327
466881
495042
438488
454334
501169
389861
411701
447702
472416
489285
433048
438587
443191
454973
232940
500842
441089
428633
441799
428129
454006
454182
452323
461810
467114
484048
456037
473476
497233
494684
464184
386638
485429
425511
440644
407780
474835
466891
486789
582299
395182
455530
423974
455333
454961
447691
445607
453550
462194
453400
460903
517831
502616
458761
477588
451040
560385
411898
430301
452983
444143
518006
528528
]
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 (187956 , 408446 , 443421 , 447699 , 188150 , 465327 , 466881 , 495042 , 438488 , 454334 , 501169 , 389861 , 411701 , 447702 , 472416 , 489285 , 433048 , 438587 , 443191 , 454973 , 232940 , 500842 , 441089 , 428633 , 441799 , 428129 , 454006 , 454182 , 452323 , 461810 , 467114 , 484048 , 456037 , 473476 , 497233 , 494684 , 464184 , 386638 , 485429 , 425511 , 440644 , 407780 , 474835 , 466891 , 486789 , 582299 , 395182 , 455530 , 423974 , 455333 , 454961 , 447691 , 445607 , 453550 , 462194 , 453400 , 460903 , 517831 , 502616 , 458761 , 477588 , 451040 , 560385 , 411898 , 430301 , 452983 , 444143 , 518006 , 528528 );
Copy
5
3.32 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
187956
188150
232940
386638
389861
395182
407780
408446
411701
411898
423974
425511
428129
428633
430301
433048
438488
438587
440644
441089
441799
443191
443421
444143
445607
447691
447699
447702
451040
452323
452983
453400
453550
454006
454182
454334
454961
454973
455333
455530
456037
458761
460903
461810
462194
464184
465327
466881
466891
467114
472416
473476
474835
477588
484048
485429
486789
489285
494684
495042
497233
500842
501169
502616
517831
518006
528528
560385
582299
]
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 (187956 , 188150 , 232940 , 386638 , 389861 , 395182 , 407780 , 408446 , 411701 , 411898 , 423974 , 425511 , 428129 , 428633 , 430301 , 433048 , 438488 , 438587 , 440644 , 441089 , 441799 , 443191 , 443421 , 444143 , 445607 , 447691 , 447699 , 447702 , 451040 , 452323 , 452983 , 453400 , 453550 , 454006 , 454182 , 454334 , 454961 , 454973 , 455333 , 455530 , 456037 , 458761 , 460903 , 461810 , 462194 , 464184 , 465327 , 466881 , 466891 , 467114 , 472416 , 473476 , 474835 , 477588 , 484048 , 485429 , 486789 , 489285 , 494684 , 495042 , 497233 , 500842 , 501169 , 502616 , 517831 , 518006 , 528528 , 560385 , 582299 );
Copy
6
112.19 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
187956
188150
232940
386638
389861
395182
407780
408446
411701
411898
423974
425511
428129
428633
430301
433048
438488
438587
440644
441089
441799
443191
443421
444143
445607
447691
447699
447702
451040
452323
452983
453400
453550
454006
454182
454334
454961
454973
455333
455530
456037
458761
460903
461810
462194
464184
465327
466881
466891
467114
472416
473476
474835
477588
484048
485429
486789
489285
494684
495042
497233
500842
501169
502616
517831
518006
528528
560385
582299
]
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 (187956 , 188150 , 232940 , 386638 , 389861 , 395182 , 407780 , 408446 , 411701 , 411898 , 423974 , 425511 , 428129 , 428633 , 430301 , 433048 , 438488 , 438587 , 440644 , 441089 , 441799 , 443191 , 443421 , 444143 , 445607 , 447691 , 447699 , 447702 , 451040 , 452323 , 452983 , 453400 , 453550 , 454006 , 454182 , 454334 , 454961 , 454973 , 455333 , 455530 , 456037 , 458761 , 460903 , 461810 , 462194 , 464184 , 465327 , 466881 , 466891 , 467114 , 472416 , 473476 , 474835 , 477588 , 484048 , 485429 , 486789 , 489285 , 494684 , 495042 , 497233 , 500842 , 501169 , 502616 , 517831 , 518006 , 528528 , 560385 , 582299 );
Copy