[MDEV-4615] PARTITION - Vertical Partitioning (using spider engine) Created: 2013-06-04 Updated: 2015-11-04 Resolved: 2015-11-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Minor |
| Reporter: | roberto spadim | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Hi guys, today we have Horizontal partition, a nice feature that IMHO need a lock per partition instead a lock per table, and query cache invalidate per partition instead invalidate per table (maybe some work is being done at MDEV-252 at mysql server) Now i'm thinking about Vertical partition (some column in one file, others columns in another files, etc...) Instead of create table 1 and 2, with same primary key and different columns Could we create a table X that have all columns and partition it vertically? one point ... the lock MUST be done per partition example:
when i execute
only table/partition X#p1 will be locked, in other words... if i execute:
the first one (1) will not block the second (2), and the second (2) will not block the first (1), but:
the first one (3) will block all partitions from table X, and the second (4) will only be executed after (3) be completed |
| Comments |
| Comment by roberto spadim [ 2013-06-05 ] |
|
problems... in others words, partition1 have a row that partition2 don't have (like a server crash) what we should do? well ... i think this will occur only in mysqld startup, or when running check table / repair table problem 2) keys / unique keys think about: where key b1 should be placed since they are two partitions??? problem => since we have a in p1 and p2, they must be in sync (like a raid1), again here a new check/repair function must be implemented) |
| Comment by roberto spadim [ 2013-06-18 ] |
|
after mysql 5.6 merge, we will have partition prune lock |
| Comment by roberto spadim [ 2013-06-18 ] |
|
waiting mysql 5.6 (5.6.6) merge |
| Comment by roberto spadim [ 2014-09-21 ] |
|
please close since we can do this using spider (VP) engine |
| Comment by roberto spadim [ 2014-09-21 ] |
|
|
| Comment by Sergei Golubchik [ 2015-11-04 ] |
|
See MDEV-7795 |