summaryrefslogtreecommitdiffstats
path: root/include/framework/structure/InternalLevel.h
Commit message (Collapse)AuthorAgeFilesLines
* Updates for dynamic rate limitingnew-concurrencyDouglas Rumbaugh7 days1-1/+1
|
* Code reformattingDouglas Rumbaugh2025-09-251-14/+12
|
* Insertion Stall UpdatesDouglas Rumbaugh2025-09-231-3/+26
| | | | | | | Revised insertion stalling mechanism to work for structures with > 1us required stall time per record, and got dynamic calculation of the stall time working.
* Beginnings of per-level cost modelingDouglas Rumbaugh2025-09-171-0/+8
| | | | | | | | | | | | The total time required for each shard construction is now measured, and hooks have been added to InternalLevel to support the creation and use of per-level cost models. The appropriate calls to these functions are now made during reconstruction, but the scheduling process doesn't yet call them, nor are the models actually implemented.
* Implemented the legacy policies and fixed a few bugsDouglas Rumbaugh2025-04-071-11/+5
|
* working commit (temporary progress, doesn't build)Douglas Rumbaugh2025-04-051-2/+6
|
* Parallel background reconstructions appear to be working!Douglas Rumbaugh2025-02-141-1/+0
|
* progress towards resolving asynch structure mergesDouglas Rumbaugh2025-02-131-1/+5
|
* Background compaction stuffDouglas Rumbaugh2025-02-061-24/+52
|
* Additional layout policies + more flexibility in buffer flushingDouglas Rumbaugh2025-01-161-0/+19
|
* Continued developmentDouglas B. Rumbaugh2024-12-221-14/+14
|
* Began overhauling reconstruction mechanismDouglas B. Rumbaugh2024-12-221-128/+26
|
* Interface update (#5)Douglas B. Rumbaugh2024-12-061-217/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Query Interface Adjustments/Refactoring Began the process of adjusting the query interface (and also the shard interface, to a lesser degree) to better accommodate the user. In particular the following changes have been made, 1. The number of necessary template arguments for the query type has been drastically reduced, while also removing the void pointers and manual delete functions from the interface. This was accomplished by requiring many of the sub-types associated with a query (parameters, etc.) to be nested inside the main query class, and by forcing the SHARD type to expose its associated record type. 2. User-defined query return types are now supported. Queries no longer are required to return strictly sets of records. Instead, the query now has LocalResultType and ResultType template parameters (which can be defaulted using a typedef in the Query type itself), allowing much more flexibility. Note that, at least for the short term, the LocalResultType must still expose the same is_deleted/is_tombstone interface as a Wrapped<R> used to, as this is currently needed for delete filtering. A better approach to this is, hopefully, forthcoming. 3. Updated the ISAMTree.h shard and rangequery.h query to use the new interfaces, and adjusted the associated unit tests as well. 4. Dropped the unnecessary "get_data()" function from the ShardInterface concept. 5. Dropped the need to specify a record type in the ShardInterface concept. This is now handled using a required Shard::RECORD member of the Shard class itself, which should expose the name of the record type. * Updates to framework to support new Query/Shard interfaces Pretty extensive adjustments to the framework, particularly to the templates themselves, along with some type-renaming work, to support the new query and shard interfaces. Adjusted the external query interface to take an rvalue reference, rather than a pointer, to the query parameters. * Removed framework-level delete filtering This was causing some issues with the new query interface, and should probably be reworked anyway, so I'm temporarily (TM) removing the feature. * Updated benchmarks + remaining code for new interface
* Added a Bentley-Saxe layout policyDouglas Rumbaugh2024-05-011-0/+19
|
* Comment updates/fixesDouglas Rumbaugh2024-02-091-0/+6
|
* Fully realized shard concept interfaceDouglas Rumbaugh2024-02-071-2/+2
|
* Fully implemented Query concept and adjusted queries to use itDouglas Rumbaugh2024-02-071-2/+2
|
* Multiple concurrency bug fixesDouglas Rumbaugh2024-01-171-14/+12
| | | | | | | | A poorly organized commit with fixes for a variety of bugs that were causing missing records. The core problems all appear to be fixed, though there is an outstanding problem with tombstones not being completely canceled. A very small number are appearing in the wrong order during the static structure test.
* InternalLevel update and testsDouglas Rumbaugh2024-01-111-6/+5
| | | | | Plus some assorted fixes for move semantics stuff in BufferView that accompanied these changes.
* InternalLevel: appending an empty level is a no-opDouglas Rumbaugh2023-12-211-0/+7
| | | | | | | | The existing reconstruction logic will occasionally attempt to append an empty level to another empty level, for some reason. While the underlying cause of this needs to be looked into, this special case should prevent shard constructors being called with a shard count of 0 under tiering, reducing the error handling overhead of shard code.
* Refactoring: corrected a number of names and added more commentsDouglas Rumbaugh2023-12-131-17/+41
|
* Fixed merge logic bug in tieringDouglas Rumbaugh2023-11-131-0/+1
| | | | | | | | | | | | In InternalLevel::clone(), the m_shard_cnt variable was not being set appropriately in the clone, resulting in the record counts reported for a multi-shard level to be reported incorrectly. In DynamicExtension::merge(), the merges were being performed in the wrong order, resulting in multi-level merges deleting records. The leveling tests all passed even with this bug for some reason, but it caused tiering tests to fail. It isn't clear _why_ leveling appeared to work, but the bug is now fixed, so that's largely irrelevant I suppose.
* Comment and License updatesDouglas Rumbaugh2023-11-071-1/+1
|
* InternalLevel: switched to std::sharedptr for shard memory managementDouglas Rumbaugh2023-11-061-52/+29
|
* General Comment + Consistency updatesDouglas Rumbaugh2023-10-301-2/+2
|
* Concurrency updates + fixes for compile errorsDouglas Rumbaugh2023-10-301-10/+11
|
* Re-structuring Project + scheduling updatesDouglas Rumbaugh2023-09-251-0/+258
This is a big one--probably should have split it apart, but I'm feeling lazy this morning. * Organized the mess of header files in include/framework by splitting them out into their own subdirectories, and renaming a few files to remove redundancies introduced by the directory structure. * Introduced a new framework/ShardRequirements.h header file for simpler shard development. This header simply contains the necessary includes from framework/* for creating shard files. This should help to remove structural dependencies from the framework file structure and shards, as well as centralizing the necessary framework files to make shard development easier. * Created a (currently dummy) SchedulerInterface, and make the scheduler implementation a template parameter of the dynamic extension for easier testing of various scheduling policies. There's still more work to be done to fully integrate the scheduler (queries, multiple buffers), but some more of the necessary framework code for this has been added as well. * Adjusted the Task interface setup for the scheduler. The task structures have been removed from ExtensionStructure and placed in their own header file. Additionally, I started experimenting with using std::variant, as opposed to inheritence, to implement subtype polymorphism on the Merge and Query tasks. The scheduler now has a general task queue that contains both, and std::variant, std::visit, and std::get are used to manipulate them without virtual functions. * Removed Alex.h, as it can't build anyway. There's a branch out there containing the Alex implementation stripped of the C++20 stuff. So there's no need to keep it here.