6
9.92 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
397535
397354
397008
396646
396600
396588
396565
396020
395674
395552
395440
395159
394610
393652
392957
392530
391992
391986
391917
391537
391450
391150
391001
390856
390362
389498
388635
388514
388379
387831
387490
387221
386746
386613
385933
385134
383411
382163
382134
381972
381961
381890
359918
340567
338587
338371
326039
325804
323845
308282
293121
260962
181068
147400
130468
123862
117869
100976
97763
96955
96755
96524
96463
95788
69956
69611
47606
3786
]
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 (397535 , 397354 , 397008 , 396646 , 396600 , 396588 , 396565 , 396020 , 395674 , 395552 , 395440 , 395159 , 394610 , 393652 , 392957 , 392530 , 391992 , 391986 , 391917 , 391537 , 391450 , 391150 , 391001 , 390856 , 390362 , 389498 , 388635 , 388514 , 388379 , 387831 , 387490 , 387221 , 386746 , 386613 , 385933 , 385134 , 383411 , 382163 , 382134 , 381972 , 381961 , 381890 , 359918 , 340567 , 338587 , 338371 , 326039 , 325804 , 323845 , 308282 , 293121 , 260962 , 181068 , 147400 , 130468 , 123862 , 117869 , 100976 , 97763 , 96955 , 96755 , 96524 , 96463 , 95788 , 69956 , 69611 , 47606 , 3786 );
Copy
7
2.47 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
3786
47606
69611
69956
95788
96463
96524
96755
96955
97763
100976
117869
123862
130468
147400
181068
260962
293121
308282
323845
325804
326039
338371
338587
340567
359918
381890
381961
381972
382134
382163
383411
385134
385933
386613
386746
387221
387490
387831
388379
388514
388635
389498
390362
390856
391001
391150
391450
391537
391917
391986
391992
392530
392957
393652
394610
395159
395440
395552
395674
396020
396565
396588
396600
396646
397008
397354
397535
]
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 (3786 , 47606 , 69611 , 69956 , 95788 , 96463 , 96524 , 96755 , 96955 , 97763 , 100976 , 117869 , 123862 , 130468 , 147400 , 181068 , 260962 , 293121 , 308282 , 323845 , 325804 , 326039 , 338371 , 338587 , 340567 , 359918 , 381890 , 381961 , 381972 , 382134 , 382163 , 383411 , 385134 , 385933 , 386613 , 386746 , 387221 , 387490 , 387831 , 388379 , 388514 , 388635 , 389498 , 390362 , 390856 , 391001 , 391150 , 391450 , 391537 , 391917 , 391986 , 391992 , 392530 , 392957 , 393652 , 394610 , 395159 , 395440 , 395552 , 395674 , 396020 , 396565 , 396588 , 396600 , 396646 , 397008 , 397354 , 397535 );
Copy
8
113.73 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
3786
47606
69611
69956
95788
96463
96524
96755
96955
97763
100976
117869
123862
130468
147400
181068
260962
293121
308282
323845
325804
326039
338371
338587
340567
359918
381890
381961
381972
382134
382163
383411
385134
385933
386613
386746
387221
387490
387831
388379
388514
388635
389498
390362
390856
391001
391150
391450
391537
391917
391986
391992
392530
392957
393652
394610
395159
395440
395552
395674
396020
396565
396588
396600
396646
397008
397354
397535
]
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 (3786 , 47606 , 69611 , 69956 , 95788 , 96463 , 96524 , 96755 , 96955 , 97763 , 100976 , 117869 , 123862 , 130468 , 147400 , 181068 , 260962 , 293121 , 308282 , 323845 , 325804 , 326039 , 338371 , 338587 , 340567 , 359918 , 381890 , 381961 , 381972 , 382134 , 382163 , 383411 , 385134 , 385933 , 386613 , 386746 , 387221 , 387490 , 387831 , 388379 , 388514 , 388635 , 389498 , 390362 , 390856 , 391001 , 391150 , 391450 , 391537 , 391917 , 391986 , 391992 , 392530 , 392957 , 393652 , 394610 , 395159 , 395440 , 395552 , 395674 , 396020 , 396565 , 396588 , 396600 , 396646 , 397008 , 397354 , 397535 );
Copy