{"id":42896286,"url":"https://github.com/askdkc/proontest","last_synced_at":"2026-01-30T15:11:11.142Z","repository":{"id":37588664,"uuid":"497003870","full_name":"askdkc/proontest","owner":"askdkc","description":"PGroonga全文検索のクエリ速度検証用","archived":false,"fork":false,"pushed_at":"2024-04-29T04:48:50.000Z","size":400,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-21T09:34:21.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/askdkc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-05-27T13:17:52.000Z","updated_at":"2024-05-21T09:34:21.390Z","dependencies_parsed_at":"2024-04-29T05:47:12.904Z","dependency_job_id":null,"html_url":"https://github.com/askdkc/proontest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/askdkc/proontest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askdkc%2Fproontest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askdkc%2Fproontest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askdkc%2Fproontest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askdkc%2Fproontest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/askdkc","download_url":"https://codeload.github.com/askdkc/proontest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askdkc%2Fproontest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-30T15:11:10.358Z","updated_at":"2026-01-30T15:11:11.133Z","avatar_url":"https://github.com/askdkc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## このリポジトリについて\n\nPGroongaの全文検索を使うとLIKE検索よりも、何故か検索が遅いのを確かめるデモ\n\n## 使い方\n\n```\ngit clone このURL\ncd proontest\ncomposer install\ncp .env.example .env\n\nphp artisan key:generate\n\nvi .env\n\n---こちらを自環境に合わせて適当に変えてください---\nDB_DATABASE=proontest\nDB_USERNAME=root\nDB_PASSWORD=\n-------------------------------------------\n\nPGroongaのExtensionをDB作成時に手動で入れてる人は\ndatabase/migrations/2022_05_27_create_posts_table.phpの下記をコメントアウトしてご利用ください。\n  DB::statement(\"CREATE EXTENSION pgroonga;\"); \n\n\n下記コマンドでDB作成とサンプルデータを流し込みます（20万レコード流し込むので少し時間がかります。1〜2分程度。）\nphp artisan migrate --seed\n\n\nphp artisan serve\n\nhttp://127.0.0.1:8000 にアクセス\n```\n\n## SQLの処理時間確認\n\nhttp://localhost:8000 にアクセス後「LIKE検索」と「\u0026@~全文検索」をそれぞれ\nクリックして検索速度の違いを画面下のDebugBarにあるQueriesからご確認ください。\nPGroongaの全文検索である\u0026@~が妙に遅いです。\n\n\u003cbr\u003e\u003cbr\u003e  \n  \n## インデックスの指定ミス\n\n単純にデータ項目に応じたインデックス指定が出来ておりませんでした。\n\n- varcharには pgroonga_varchar_full_text_search_ops_v2 を指定する必要あり\n- textの場合は特に指定不要でOK\n\n下記に修正版ブランチを作成しました\n[修正版ブランチ](https://github.com/askdkc/proontest/tree/pgindexfix)\n\n以下のやり方でお試しください\n```\ngit checkout pgindexfix\n\ndropdb proontest\ncreatedb proontest\n\nphp artisan migrate --seed\n\nphp artisan serve\n\nhttp://127.0.0.1:8000 にアクセス\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskdkc%2Fproontest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskdkc%2Fproontest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskdkc%2Fproontest/lists"}