7
13.13 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
435943
435793
435421
435376
435027
435024
434849
434557
434070
432721
429692
428174
427972
427278
427210
426527
424255
424179
424155
424070
423620
422409
421678
421555
420854
420753
419669
419468
419179
419174
417408
416847
416315
416056
415926
415745
415564
411478
410602
410518
410242
410201
408598
407683
406116
405191
404884
404870
402731
401885
401617
401189
400825
400791
400728
399837
398695
398651
398144
397762
397587
397335
394103
392324
389994
388780
384054
382681
381921
202901
159511
151163
119646
7133
]
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 (435943 , 435793 , 435421 , 435376 , 435027 , 435024 , 434849 , 434557 , 434070 , 432721 , 429692 , 428174 , 427972 , 427278 , 427210 , 426527 , 424255 , 424179 , 424155 , 424070 , 423620 , 422409 , 421678 , 421555 , 420854 , 420753 , 419669 , 419468 , 419179 , 419174 , 417408 , 416847 , 416315 , 416056 , 415926 , 415745 , 415564 , 411478 , 410602 , 410518 , 410242 , 410201 , 408598 , 407683 , 406116 , 405191 , 404884 , 404870 , 402731 , 401885 , 401617 , 401189 , 400825 , 400791 , 400728 , 399837 , 398695 , 398651 , 398144 , 397762 , 397587 , 397335 , 394103 , 392324 , 389994 , 388780 , 384054 , 382681 , 381921 , 202901 , 159511 , 151163 , 119646 , 7133 );
Copy
8
212.40 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
7133
119646
151163
159511
202901
381921
382681
384054
388780
389994
392324
394103
397335
397587
397762
398144
398651
398695
399837
400728
400791
400825
401189
401617
401885
402731
404870
404884
405191
406116
407683
408598
410201
410242
410518
410602
411478
415564
415745
415926
416056
416315
416847
417408
419174
419179
419468
419669
420753
420854
421555
421678
422409
423620
424070
424155
424179
424255
426527
427210
427278
427972
428174
429692
432721
434070
434557
434849
435024
435027
435376
435421
435793
435943
]
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 (7133 , 119646 , 151163 , 159511 , 202901 , 381921 , 382681 , 384054 , 388780 , 389994 , 392324 , 394103 , 397335 , 397587 , 397762 , 398144 , 398651 , 398695 , 399837 , 400728 , 400791 , 400825 , 401189 , 401617 , 401885 , 402731 , 404870 , 404884 , 405191 , 406116 , 407683 , 408598 , 410201 , 410242 , 410518 , 410602 , 411478 , 415564 , 415745 , 415926 , 416056 , 416315 , 416847 , 417408 , 419174 , 419179 , 419468 , 419669 , 420753 , 420854 , 421555 , 421678 , 422409 , 423620 , 424070 , 424155 , 424179 , 424255 , 426527 , 427210 , 427278 , 427972 , 428174 , 429692 , 432721 , 434070 , 434557 , 434849 , 435024 , 435027 , 435376 , 435421 , 435793 , 435943 );
Copy
9
77.61 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
7133
119646
151163
159511
202901
381921
382681
384054
388780
389994
392324
394103
397335
397587
397762
398144
398651
398695
399837
400728
400791
400825
401189
401617
401885
402731
404870
404884
405191
406116
407683
408598
410201
410242
410518
410602
411478
415564
415745
415926
416056
416315
416847
417408
419174
419179
419468
419669
420753
420854
421555
421678
422409
423620
424070
424155
424179
424255
426527
427210
427278
427972
428174
429692
432721
434070
434557
434849
435024
435027
435376
435421
435793
435943
]
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 (7133 , 119646 , 151163 , 159511 , 202901 , 381921 , 382681 , 384054 , 388780 , 389994 , 392324 , 394103 , 397335 , 397587 , 397762 , 398144 , 398651 , 398695 , 399837 , 400728 , 400791 , 400825 , 401189 , 401617 , 401885 , 402731 , 404870 , 404884 , 405191 , 406116 , 407683 , 408598 , 410201 , 410242 , 410518 , 410602 , 411478 , 415564 , 415745 , 415926 , 416056 , 416315 , 416847 , 417408 , 419174 , 419179 , 419468 , 419669 , 420753 , 420854 , 421555 , 421678 , 422409 , 423620 , 424070 , 424155 , 424179 , 424255 , 426527 , 427210 , 427278 , 427972 , 428174 , 429692 , 432721 , 434070 , 434557 , 434849 , 435024 , 435027 , 435376 , 435421 , 435793 , 435943 );
Copy