By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version() |
|---|
| 10.6.8-MariaDB |
| name_id | groups |
|---|---|
| f1 | [{"id": "f1.g1", "actions": [{"id": 1, "name": "f1.g1.a1"},{"id": 2, "name": "f1.g1.a2"},{"id": 3, "name": "f1.g1.a3"},{"id": 4, "name": "f1.g1.a4"}]},{"id": "f1.g2", "actions": [{"id": 5, "name": "f1.g2.a1"},{"id": 6, "name": "f1.g2.a2"},{"id": 7, "name": "f1.g2.a3"},{"id": 8, "name": "f1.g2.a4"}]}] |
| f2 | [{"id": "f2.g1", "actions": [{"id": 9, "name": "f2.g1.a1"},{"id": 10, "name": "f2.g1.a2"},{"id": 11, "name": "f2.g1.a3"},{"id": 12, "name": "f2.g1.a4"}]},{"id": "f2.g2", "actions": [{"id": 13, "name": "f2.g2.a1"},{"id": 14, "name": "f2.g2.a2"},{"id": 15, "name": "f2.g2.a3"},{"id": 16, "name": "f2.g2.a4"}]}] |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PRIMARY | t1 | index | null | name | 257 | null | 16 | Using index; Using temporary |
| 2 | DEPENDENT SUBQUERY | <derived4> | ALL | null | null | null | null | 16 | Using where |
| 4 | DERIVED | t2 | index | null | name | 257 | null | 16 | Using index; Using temporary |
| 3 | DEPENDENT SUBQUERY | t3 | index | null | name | 257 | null | 16 | Using where; Using index |
| id | groups |
|---|---|
| f1 | [{"id": "f1.g1", "actions": [{"id": 1, "name": "f1.g1.a1"},{"id": 2, "name": "f1.g1.a2"},{"id": 3, "name": "f1.g1.a3"},{"id": 4, "name": "f1.g1.a4"}]},{"id": "f1.g2", "actions": [{"id": 5, "name": "f1.g2.a1"},{"id": 6, "name": "f1.g2.a2"},{"id": 7, "name": "f1.g2.a3"},{"id": 8, "name": "f1.g2.a4"}]}] |
| f2 | [{"id": "f2.g1", "actions": [{"id": 9, "name": "f2.g1.a1"},{"id": 10, "name": "f2.g1.a2"},{"id": 11, "name": "f2.g1.a3"},{"id": 12, "name": "f2.g1.a4"}]},{"id": "f2.g2", "actions": [{"id": 13, "name": "f2.g2.a1"},{"id": 14, "name": "f2.g2.a2"},{"id": 15, "name": "f2.g2.a3"},{"id": 16, "name": "f2.g2.a4"}]}] |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PRIMARY | t1 | index | null | name | 257 | null | 16 | Using index; Using temporary; Using filesort |
| 2 | DEPENDENT SUBQUERY | <derived4> | ALL | null | null | null | null | 16 | Using where |
| 4 | DERIVED | t2 | index | null | name | 257 | null | 16 | Using index; Using temporary; Using filesort |
| 3 | DEPENDENT SUBQUERY | t3 | index | null | name | 257 | null | 16 | Using where; Using index; Using temporary; Using filesort |