Giter VIP home page Giter VIP logo

mytopling's People

Contributors

alfranio avatar arnabray21 avatar bjornmu avatar bkandasa avatar blaudden avatar dahlerlend avatar frazerclement avatar gkodinov avatar glebshchepa avatar gurusami avatar harinvadodaria avatar jdduncan avatar jhauglid avatar kahatlen avatar kdjakevin avatar lkotula avatar lkshminarayanan avatar ltangvald avatar marcalff avatar nacarvalho avatar nryeng avatar phulakun avatar roylyseng avatar thayumanavar77 avatar thirunarayanan avatar trosten avatar vaintroub avatar vasild avatar weigon avatar zmur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mytopling's Issues

bug:mtr rocksdb.add_index_inplace fail

mtr test “rocksdb.add_index_inplace 'write_committed'” failed

output:
CURRENT_TEST: rocksdb.add_index_inplace
mysqltest: At line 411: Query 'ALTER TABLE t1 DROP INDEX idx, ADD UNIQUE KEY idx (j)' succeeded, should have failed with error '1062'

bad show status for Rocksdb_git_date and Rocksdb_git_hash

show status like 'Rocksdb_git%'; shows none:

+------------------+------------------------------------------+
| Variable_name    | Value                                    |
+------------------+------------------------------------------+
| Rocksdb_git_date | none                                     |
| Rocksdb_git_hash | none                                     |
+------------------+------------------------------------------+

Add multiple indexes in one pass table scan

MyRocks inplace_populate_sk() scan table one pass for each index, this waste CPUs, but this waste is not a hot spot because MyRocks MergeTree is very slow -- thus MergeTree is the hot spot.

MyTopling has auto_sort_sst, which is very fast, especially for building indexes, thus the wasted table scans are hot spot.

So creating multiple indexes shoule be realized by just one pass table scan, at least for non-unique index.

Generate data pack/unpack code at runtime

Now MyTopling inherited MyRocks's pack/unpack code, which is slow because it pack/unpack data dynamically, in table scan stage, pack/unpack consume , as show in this flame graph:
image

We can optimize it as below:

  1. generate pack/unpack C++ code on create/alter table and create index
  2. compile the code into shared lib
  3. calling pack/unpack function in the shared lib

We expecting this will greatly improve pack/unpack performance.

Feature: support parallel index creation

InnoDB support parallel index creation by setting innodb_ddl_threads, mytopling should provide similar feature to speed up index creation and other long running ddl operation.

We had filed such a feature request to myrocks: facebook/mysql-5.6#1245
If myrocks community implemented such feature early, we can merge their contribution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.