All Projects → wsdookadr → Fieldtop

wsdookadr / Fieldtop

Licence: mit
Finds near-overflow columns in MySQL databases

Projects that are alternatives of or similar to Fieldtop

Zabbixdba
Zabbix Database Monitoring Service (Oracle, Pg, MySQL, MS SQL, DB2, etc.)
Stars: ✭ 68 (+88.89%)
Mutual labels:  database, mysql, monitoring
Hana sql exporter
SAP Hana SQL Exporter for Prometheus
Stars: ✭ 18 (-50%)
Mutual labels:  database, monitoring
Go Book Store Api
Go Sample project to understand Mysql CRUD operation with best practises Includes logging, JWT, Swagger and Transactions
Stars: ✭ 18 (-50%)
Mutual labels:  database, mysql
Mysqldump Php
PHP version of mysqldump cli that comes with MySQL
Stars: ✭ 975 (+2608.33%)
Mutual labels:  database, mysql
Mysqlconnection
Simple library to make it much easier to use MySQL in Visual Studio projects
Stars: ✭ 6 (-83.33%)
Mutual labels:  database, mysql
Goloquent
This repo no longer under maintenance, please go to https://github.com/si3nloong/sqlike
Stars: ✭ 16 (-55.56%)
Mutual labels:  database, mysql
Pecee Pixie
Lightweight, easy-to-use querybuilder for PHP inspired by Laravel Eloquent - but with less overhead.
Stars: ✭ 19 (-47.22%)
Mutual labels:  database, mysql
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 7,712 (+21322.22%)
Mutual labels:  database, mysql
Db Mysql
Stars: ✭ 22 (-38.89%)
Mutual labels:  database, mysql
Bgpmon
CSU's BGP Observatory code (bgpmon/pheme)
Stars: ✭ 25 (-30.56%)
Mutual labels:  database, monitoring
Database And Queries
Stars: ✭ 8 (-77.78%)
Mutual labels:  database, mysql
Ansible Role Mysql
Ansible Role - MySQL
Stars: ✭ 826 (+2194.44%)
Mutual labels:  database, mysql
Eralchemy
Entity Relation Diagrams generation tool
Stars: ✭ 767 (+2030.56%)
Mutual labels:  database, mysql
Phpmyadmin sql backup
A Python script to automate SQL dumps via phpMyAdmin's web interface
Stars: ✭ 17 (-52.78%)
Mutual labels:  database, mysql
Bookshelf
A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js
Stars: ✭ 6,252 (+17266.67%)
Mutual labels:  database, mysql
Reiner
萊納 - A MySQL wrapper which might be better than the ORMs and written in Golang
Stars: ✭ 19 (-47.22%)
Mutual labels:  database, mysql
Mirth Connect Docker
Mirth-Connect Docker container (+ Mysql container + PHPMyAdmin container)
Stars: ✭ 29 (-19.44%)
Mutual labels:  database, mysql
Baikaldb
BaikalDB, A Distributed HTAP Database.
Stars: ✭ 707 (+1863.89%)
Mutual labels:  database, mysql
Db Dumper
Dump the contents of a database
Stars: ✭ 744 (+1966.67%)
Mutual labels:  database, mysql
Mariadb Container
MariaDB container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 19 (-47.22%)
Mutual labels:  database, mysql

Intro

Fieldtop looks at all fields in all tables and all databases and analyzes how close the values in each field are to the maximum (or minimum) allowed value for the given field type. This can give you interesting insight into your databases. A typical output looks like this:

Field Min Max
community.users.id 30%
community.users.name 100%
community.users.karma 60% 1%
community.posts.id 1%
community.posts.text 100%

This would tell you a couple of things at a glance:

  • Your user IDs use 30% of the available range. Depending on how long the project has been running, this can be ok or could mean your field is in danger of overflowing at some point.
  • Some user names already use the maximum length. This is probably ok if your database design is in sync with your application.
  • The negative values in the user karma column are already pretty big. Maybe you did not expect that people aquire negative karma so fast?
  • The IDs for posts are far from the limit
  • The text field for the posts is already maxing out the max lenght. Maybe that is not what you want.

The output can be escpecially interesting for databases that have been used for extended periods of time. Often at some point, some of the data will outgrow the designated data types.

In fact, the idea to make this tool came up when no-gravity noticed that after 10 years of unsupervised learning, his music recommendation system Gnoosic maxed out over 50% of the available range for band popularity. The popularity was stored in a signed integer which can hold numbers up to 2 billion. And Pink Floyd was already at 1.3 billion. So the popularity field was destined to overflow at some point in the future.

Testing

FieldTop has been developed and tested using MySQL 5.5.49 and PHP 5.5.9 and is expected to work on PHP >= 5.5.9

Contributing

You are welcome to send pull requests with enhancements or fixes to this project.

Bugs

Please report any bugs in the issue tracker.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].