GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MusikAnimal/sql-optimizer: Run EXPLAIN on Wikimedia Toolforge SQL queries

BranchesTags
Open more actions menu

Latest commit

 

History

60 Commits
60 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
templates
templates
 
 
.babelrc
.babelrc
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
env.json.dist
env.json.dist
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
server.dist.js
server.dist.js
 
 
server.js
server.js
 
 

Repository files navigation

SQL Optimizer

Run EXPLAIN on Wikimedia Toolforge SQL queries

https://sql-optimizer.toolforge.org

Report bugs

You can report bugs or make feature requests by filing an issue on GitHub: https://github.com/MusikAnimal/sql-optimizer/issues

Or you can use on Wikimedia's Phabricator. Please tag with the Tools project and add MusikAnimal as a subscriber.

Installation

Prerequisites:

  • Node.js with the version specified by .nvmrc.
  • npm
  • A Wikimedia developer account and access to the Toolforge environment.

Installation:

  • git clone https://github.com/MusikAnimal/sql-optimizer

  • cd sql-optimizer

  • npm install

  • Establish an SSH tunnel to the Toolforge replicas. It is important to connect to a specific database server. The command will be something similar to:

    ssh -L 4711:enwiki.web.db.svc.eqiad.wmflabs:3306 [email protected]
    
  • cp env.json.dist env.json and fill out the details. In the above example, the db_port would be 4711.

  • npm run-script build && npm run-script start - note you will need to re-run this command as you make changes during development.

  • You should be up and running at http://localhost:8000

  • Note you can only query against the database you set up in your SSH tunnel (enwiki in the above example). In production, the host in env.json is set to *.web.db.svc.eqiad.wmflabs which gets changed to the appropriate host for the given database at run time.

About

Run EXPLAIN on Wikimedia Toolforge SQL queries

sql-optimizer.toolforge.org

Topics

sqltoolforgewikimediawikipedia

Resources

Readme
MIT license
Activity

Stars

10 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.