3
10.94 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
649162
383433
815741
767124
396582
494147
536928
523288
822257
445954
461535
448240
501306
524277
818651
827942
810702
409372
585885
588884
396549
457847
442280
821159
502302
428104
431771
819104
457843
758437
788808
433333
457174
557968
692382
770795
581649
606732
471325
525258
536918
502959
815406
818457
528769
576403
552953
563696
573782
580532
512971
402262
424516
463201
525261
512313
581683
511557
448426
426214
473037
581695
512967
519549
683438
559106
682497
472137
476706
]
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 (649162 , 383433 , 815741 , 767124 , 396582 , 494147 , 536928 , 523288 , 822257 , 445954 , 461535 , 448240 , 501306 , 524277 , 818651 , 827942 , 810702 , 409372 , 585885 , 588884 , 396549 , 457847 , 442280 , 821159 , 502302 , 428104 , 431771 , 819104 , 457843 , 758437 , 788808 , 433333 , 457174 , 557968 , 692382 , 770795 , 581649 , 606732 , 471325 , 525258 , 536918 , 502959 , 815406 , 818457 , 528769 , 576403 , 552953 , 563696 , 573782 , 580532 , 512971 , 402262 , 424516 , 463201 , 525261 , 512313 , 581683 , 511557 , 448426 , 426214 , 473037 , 581695 , 512967 , 519549 , 683438 , 559106 , 682497 , 472137 , 476706 );
Copy
4
2.19 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
383433
396549
396582
402262
409372
424516
426214
428104
431771
433333
442280
445954
448240
448426
457174
457843
457847
461535
463201
471325
472137
473037
476706
494147
501306
502302
502959
511557
512313
512967
512971
519549
523288
524277
525258
525261
528769
536918
536928
552953
557968
559106
563696
573782
576403
580532
581649
581683
581695
585885
588884
606732
649162
682497
683438
692382
758437
767124
770795
788808
810702
815406
815741
818457
818651
819104
821159
822257
827942
]
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 (383433 , 396549 , 396582 , 402262 , 409372 , 424516 , 426214 , 428104 , 431771 , 433333 , 442280 , 445954 , 448240 , 448426 , 457174 , 457843 , 457847 , 461535 , 463201 , 471325 , 472137 , 473037 , 476706 , 494147 , 501306 , 502302 , 502959 , 511557 , 512313 , 512967 , 512971 , 519549 , 523288 , 524277 , 525258 , 525261 , 528769 , 536918 , 536928 , 552953 , 557968 , 559106 , 563696 , 573782 , 576403 , 580532 , 581649 , 581683 , 581695 , 585885 , 588884 , 606732 , 649162 , 682497 , 683438 , 692382 , 758437 , 767124 , 770795 , 788808 , 810702 , 815406 , 815741 , 818457 , 818651 , 819104 , 821159 , 822257 , 827942 );
Copy
5
108.12 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
383433
396549
396582
402262
409372
424516
426214
428104
431771
433333
442280
445954
448240
448426
457174
457843
457847
461535
463201
471325
472137
473037
476706
494147
501306
502302
502959
511557
512313
512967
512971
519549
523288
524277
525258
525261
528769
536918
536928
552953
557968
559106
563696
573782
576403
580532
581649
581683
581695
585885
588884
606732
649162
682497
683438
692382
758437
767124
770795
788808
810702
815406
815741
818457
818651
819104
821159
822257
827942
]
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 (383433 , 396549 , 396582 , 402262 , 409372 , 424516 , 426214 , 428104 , 431771 , 433333 , 442280 , 445954 , 448240 , 448426 , 457174 , 457843 , 457847 , 461535 , 463201 , 471325 , 472137 , 473037 , 476706 , 494147 , 501306 , 502302 , 502959 , 511557 , 512313 , 512967 , 512971 , 519549 , 523288 , 524277 , 525258 , 525261 , 528769 , 536918 , 536928 , 552953 , 557968 , 559106 , 563696 , 573782 , 576403 , 580532 , 581649 , 581683 , 581695 , 585885 , 588884 , 606732 , 649162 , 682497 , 683438 , 692382 , 758437 , 767124 , 770795 , 788808 , 810702 , 815406 , 815741 , 818457 , 818651 , 819104 , 821159 , 822257 , 827942 );
Copy