Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

and when user insert into table they need to add partition before which is not so convenient for user to use.  By the way, the performance for ReentrantReadWriteLock is also not so good

Related Research

some research related to the function, such as the advantages and disadvantages of the design, related considerations, etc.

Detailed Design

the detailed design of the function.

Scheduling

...

while many readers exist.

Related Research

https://www.overops.com/blog/java-8-stampedlocks-vs-readwritelocks-and-synchronized/ 

https://www.javaspecialists.eu/talks/jfokus13/PhaserAndStampedLock.pdf

Detailed Design

Scheduling

  1. use StampLock instead of ReentrantReadWriteLock
  2. Batch create tablet
  3. Only once EditLog write for unique Id generator
  4. dynamic partition generating for load or insert