oceanbase / miniob

MiniOB is a compact database that assists developers in understanding the fundamental workings of a database.
https://oceanbase.github.io/miniob/
Mulan Permissive Software License, Version 2
3.17k stars 1.09k forks source link

A question about the feature about updateing,deleting and changing index #417

Closed lychnin closed 1 month ago

lychnin commented 2 months ago

I have read the code in ./src/observer/storage.Now I want to explore which mode uses the feature about bplus index.But I just found the creat_index_executor.cpp/h and create_index_stmt.cpp/h using the API.

So my question is if the miniob have not finished the feature about updateing,deleting and changing index.

hnwyllmm commented 2 months ago

MiniOB supports inserting, deleting b+tree index.

lychnin commented 2 months ago

Sorry,what I mean is if miniob has not finished the feature "change_index" just like create_index_executor.cpp which could call b+tree's inserting,deleting function. 屏幕截图 2024-05-22 201730

hnwyllmm commented 2 months ago

here is BplusTreeIndex::insert_entry in bplus_tree_index.cpp

hnwyllmm commented 2 months ago

create_index_executor is just for creating index. What do you mean about 'changing' index? The type? The meta?

lychnin commented 2 months ago

Sorry,I make a mistake.I've just learned changing index is droping the index and creating a new index which has the same name as the origin index.

hnwyllmm commented 2 months ago

You're right. You can't even drop an index right now in MiniOB.