Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ZhengtongYan/IndexAdvisor

Open more actions menu
 
 

Repository files navigation

Index Advisor based on Deep Reinforcement Learning

Code for CIKM2020 paper

What does it do?

This is an index advisor tool to recommend an index configuration for a certain workload under maximum storage or index number. It combines the heuristic rules and deep reinforcement learning together.

What do I need to run it?

  1. You should install a PostgreSQL database instance with HypoPG extension.
  2. You should install the required python packages (see environment.yaml exported from conda).
  3. In this code, we adopt TPC-H. Thus, you construct your own TPC-H database instance.
  4. We need the TPC-H tool to generate the workload. You can download it from this page.

How do I run it?

  1. You can find the entry in Entry/EntryM3DP.py
  2. There is a sample about how to use the workload and index candidates generation algorithms in Utility/Sample4GenCandidates.py.

Notice

  1. The index candidates generated algorithms (parser and generation algorithms in Utility/ParserForIndex.py) are for TPC-H cases. It may be not suitable TPC-DS. Because some query patterns are not in TPC-H.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.