{"id":15346278,"url":"https://github.com/bfergerson/jnomad","last_synced_at":"2025-10-11T00:30:39.774Z","repository":{"id":87460122,"uuid":"80894400","full_name":"BFergerson/JNomad","owner":"BFergerson","description":"Scans Java source code for database queries (SQL/HQL) and recommends possible table indexes based on query usage","archived":true,"fork":false,"pushed_at":"2022-09-17T08:25:36.000Z","size":1859,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T11:38:17.119Z","etag":null,"topics":["java","postgres-explainer","postgresql","source-code-sql-extractor","sql","sql-explain","sql-scanner"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BFergerson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-04T04:52:42.000Z","updated_at":"2024-02-05T20:59:59.000Z","dependencies_parsed_at":"2023-03-14T00:01:18.277Z","dependency_job_id":null,"html_url":"https://github.com/BFergerson/JNomad","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BFergerson/JNomad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BFergerson%2FJNomad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BFergerson%2FJNomad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BFergerson%2FJNomad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BFergerson%2FJNomad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BFergerson","download_url":"https://codeload.github.com/BFergerson/JNomad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BFergerson%2FJNomad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005659,"owners_count":26083942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","postgres-explainer","postgresql","source-code-sql-extractor","sql","sql-explain","sql-scanner"],"created_at":"2024-10-01T11:20:38.767Z","updated_at":"2025-10-11T00:30:39.764Z","avatar_url":"https://github.com/BFergerson.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"Java Source Code Query Scanner / Index Recommendations\n==================================\n[![Build Status](https://travis-ci.org/BFergerson/JNomad.svg?branch=master)](https://travis-ci.org/BFergerson/JNomad)\n\nJNomad is a utility for scanning Java source code bases for HQL/SQL queries which are then ran as an explain statement against a PostgreSQL/MySQL database to determine the most inefficent queries and indexes that would make them more efficent.\n\n### Download\n```sh\nhttp://www.codebrig.com/public_files/JNomad/JNomadCLI.zip\n```\n\n\n### Usage\n```\n-analyze_explain           Execute query explain with analyze (will actually run query) (default: true)\n-cache_scan_results        Cache scan results to jnomad.cache file (default: true)\n-db_database               Database name\n-db_host                   Database host (Use : to specify host (ex. localhost:5432) [default = 5432])\n-db_password               Database password\n-db_type                   Database type (Supported: PostgreSQL, MySQL) (default: PostgreSQL)\n-db_username               Database username\n-f, -log_file              Log console output to specified file\n-help, --help              Displays help information (default: false)\n-index_priority_threshold  Threshold index priority for recommendation (default: 50)\n-offender_report_percent   Report percentage of top offenders (default: 10)\n-scan_directory            Directory/directories of Java source code to be scanned for queries\n-scan_file                 File(s) of Java source code to be scanned for queries\n-scan_file_limit           Java source code file scan limit [-1 = disabled] (default: -1)\n-scan_recursive            Scan source directory/directories recursively (default: true)\n-scan_thread_count         Number of processing threads to use (default: 5)\n-source_directory          Directory/directories of Java source code to be used for type solving\n-source_directory_prescan  Pre-scan scan directory for available source directories (default: true)\n-version, --version        Displays version information (default: false)\n```\n\n### Examples\n\n##### Example 1\n- Scan \"C:\\MyWorkspace\\MyJavaProject\"\n- Run explains against database \"postgresql://localhost:5432/postgres\"\n```sh\njava -jar JNomadCLI.jar -scan_directory C:\\MyWorkspace\\MyJavaProject -db_host localhost -db_username postgres -db_password postgres -db_database postgres\n```\n##### Example 2\n- Scan \"C:\\MyWorkspace\\MyJavaProject\"\n- Run explains against databases \"postgresql://localhost:5432/postgres\" \u0026 \"postgresql://localhost:5432/postgres2\"\n```sh\njava -jar JNomadCLI.jar -scan_directory C:\\MyWorkspace\\MyJavaProject -db_host localhost -db_username postgres -db_password postgres -db_database postgres -db_host localhost -db_username postgres -db_password postgres -db_database postgres2\n```\n\n### Output\n```\n****************************************************************************************************\nJNomad {1.5/Alpha}: Index Recommendations\n****************************************************************************************************\n\nIndex: CREATE INDEX idx_column_c ON table_b (column_c);\n\tIndex Priority: 1202.0\n\tIndex Table: table_b\n\tIndex Condition: column_c\n\tIndex Affects: \n\t\tFile: src\\test\\resources\\TestSingleFile.java - Location: (line 19,col 23)-(line 19,col 88)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfergerson%2Fjnomad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfergerson%2Fjnomad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfergerson%2Fjnomad/lists"}