目次
pipインストール
ソースコードのインストール
使用方法
CLI の使用方法
ホームページ バックエンド開発 Python チュートリアル Python での gitlab ライブラリの用途は何ですか?

Python での gitlab ライブラリの用途は何ですか?

May 16, 2023 pm 06:01 PM
python gitlab

インストール

まず、python-gitlabライブラリ

pipインストール

sudo pip install --upgrade python-gitlab
ログイン後にコピー

ソースコードのインストール

git clone https://github.com/python-gitlab/python-gitlab
cd python-gitlab
sudo python setup.py install
ログイン後にコピー
をインストールする必要があります。

使用方法

CLI の使用方法

最初に、cli を使用するための環境を設定する必要があります。gitlab サーバー情報と接続パラメーターを示す設定ファイルを提供する必要があります。設定ファイルの形式は INI 、サンプルは次のとおりです:

[global]
default = somewhere
ssl_verify = true
timeout = 5

[somewhere]
url = https://some.whe.re
private_token = vTbFeqJYCY3sibBP7BZM
api_version = 4

[elsewhere]
url = http://else.whe.re:8080
private_token = CkqsjqcQSFH5FQKDccu4
timeout = 1
ログイン後にコピー
  • global 部分を指定する必要があります。主に gitlab に接続するためのパラメーターです

  • その他の部分はオプションです。設定がない場合、デフォルトは、default

  • です。使用中に、# で使用するセクションを指定できます。 ##-g (例: gitlab -g どこかのプロジェクト リスト

  • この記事で使用する設定ファイルは次のとおりです:
[global]
ssl_verify = true
timeout = 5

[gitlab]
url = https://gitlab-russellgo.cn
private_token = xxxxxx
api_version = 4
ログイン後にコピー

構成ファイルは、次の方法で有効にすることができます。

    環境変数による構成
  • PYTHON_GITLAB_CFG

  • これを次の方法で有効にします。システム構成
  • /etc/python-gitlab.cfg

  • 現在のユーザーのホーム ディレクトリ
  • ~/.python-gitlab.cfg

    に配置します。

  • コマンドラインで指定します
  • -c

    または --config-file

  • 構成この記事のファイルはホーム配下に置かれています。

環境が構築されたら、快適に使用できます

    すべてのプロジェクトをリストします (ページ内に戻ります)
  • # 上面定义了一个 gitlab 的组,所以执行时可以通过 -g 指定
    gitlab -g gitlab project list
    ログイン後にコピー


    ##すべてのプロジェクトをリストする
gitlab -g gitlab project list --all
ログイン後にコピー

  • ここで質問があります。
  • gitlab ##を知るにはどうすればよいですか? # 現在サポートされているコマンドは何ですか?
    gitlab -g gitlab 
    # 以下是输出
    usage: gitlab [-h] [--version] [-v] [-d] [-c CONFIG_FILE] [-g GITLAB]
                  [-o {json,legacy,yaml}] [-f FIELDS]
                  {application-settings,audit-event,broadcast-message,current-user,current-user-email,current-user-gp-gkey,current-user-key,current-user-status,deploy-key,dockerfile,event,feature,geo-node,gitignore,gitlabciyml,group,group-access-request,group-badge,group-board,group-board-list,group-cluster,group-custom-attribute,group-epic,group-epic-issue,group-epic-resource-label-event,group-issue,group-label,group-member,group-merge-request,group-milestone,group-notification-settings,group-project,group-subgroup,group-variable,hook,issue,l-da-pgroup,license,merge-request,namespace,notification-settings,pages-domain,project,project-access-request,project-additional-statistics,project-approval,project-approval-rule,project-badge,project-board,project-board-list,project-branch,project-cluster,project-commit,project-commit-comment,project-commit-discussion,project-commit-discussion-note,project-commit-status,project-custom-attribute,project-deployment,project-environment,project-event,project-export,project-file,project-fork,project-hook,project-import,project-issue,project-issue-award-emoji,project-issue-discussion,project-issue-discussion-note,project-issue-link,project-issue-note,project-issue-note-award-emoji,project-issue-resource-label-event,project-issues-statistics,project-job,project-key,project-label,project-member,project-merge-request,project-merge-request-approval,project-merge-request-award-emoji,project-merge-request-diff,project-merge-request-discussion,project-merge-request-discussion-note,project-merge-request-note,project-merge-request-note-award-emoji,project-merge-request-resource-label-event,project-milestone,project-note,project-notification-settings,project-pages-domain,project-pipeline,project-pipeline-job,project-pipeline-schedule,project-pipeline-schedule-variable,project-pipeline-variable,project-protected-branch,project-protected-tag,project-push-rules,project-registry-repository,project-registry-tag,project-release,project-runner,project-service,project-snippet,project-snippet-award-emoji,project-snippet-discussion,project-snippet-discussion-note,project-snippet-note,project-snippet-note-award-emoji,project-tag,project-trigger,project-user,project-variable,project-wiki,runner,runner-job,snippet,todo,user,user-activities,user-custom-attribute,user-email,user-event,user-gp-gkey,user-impersonation-token,user-key,user-project,user-status}
    ログイン後にコピー

    このようにして、gitlab で現在サポートされているリソースを一覧表示できます。サポートされているリソースがわかったら、特定のリソースがどのような操作をサポートしているかをどのように知ることができますか? プロジェクトを例に挙げます。 <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">gitlab -g gitlab project  # 以下是输出 usage: gitlab project [-h]                       {list,get,create,update,delete,repository-blob,repository-contributors,delete-merged-branches,share,archive,repository-compare,create-fork-relation,languages,mirror-pull,unarchive,star,search,artifact,trigger-pipeline,repository-archive,delete-fork-relation,repository-raw-blob,repository-tree,unstar,housekeeping,unshare,upload,snapshot,update-submodule,transfer-project}                       ... gitlab project: error: too few arguments</pre><div class="contentsignin">ログイン後にコピー</div></div>このようにして、

    gitlab

    がどのリソースに対してどのような操作をサポートしているかを知ることができ、

    --help

    を通じて次のような特定のパラメータを知ることができます。 ##

    gitlab -g gitlab project list  --help 
    # 以下是输出
    usage: gitlab project list [-h] [--sudo SUDO] [--search SEARCH]
                               [--owned OWNED] [--starred STARRED]
                               [--archived ARCHIVED] [--visibility VISIBILITY]
                               [--order-by ORDER_BY] [--sort SORT]
                               [--simple SIMPLE] [--membership MEMBERSHIP]
                               [--statistics STATISTICS]
                               [--with-issues-enabled WITH_ISSUES_ENABLED]
                               [--with-merge-requests-enabled WITH_MERGE_REQUESTS_ENABLED]
                               [--with-custom-attributes WITH_CUSTOM_ATTRIBUTES]
                               [--page PAGE] [--per-page PER_PAGE] [--all]
    
    optional arguments:
      -h, --help            show this help message and exit
      --sudo SUDO
      --search SEARCH
      --owned OWNED
      --starred STARRED
      --archived ARCHIVED
      --visibility VISIBILITY
      --order-by ORDER_BY
      --sort SORT
      --simple SIMPLE
      --membership MEMBERSHIP
      --statistics STATISTICS
      --with-issues-enabled WITH_ISSUES_ENABLED
      --with-merge-requests-enabled WITH_MERGE_REQUESTS_ENABLED
      --with-custom-attributes WITH_CUSTOM_ATTRIBUTES
      --page PAGE
      --per-page PER_PAGE
      --all
    ログイン後にコピー
    これにより、gitlab の操作が非常に便利になります。 プログラミングの使用方法

    コマンド ラインを使用して gitlab を操作することに加えて、統合のためにプログラミングを使用することもできます。一般的なシナリオは、gitlab からファイルをダウンロードすることです

    基本的な使用方法

    #!/usr/bin/env python
    # coding=utf-8
    from __future__ import print_function
    
    import gitlab
    
    # 实例化一个 gitlab 对象
    url = "https://gitlab.russellgao.cn"
    private_token = "xxxxxxxx"
    gl = gitlab.Gitlab('https://gitlab.russellgao.cn', private_token=private_token)
    
    # 列出所有的项目
    projects = gl.projects.list()
    for project in projects:
        print(project)
    
    # 获取 group id 是 2 的 list
    group = gl.groups.get(2)
    for project in group.projects.list():
        print(project)
    
    # 创建一个用户
    user_data = {'email': 'jen@foo.com', 'username': 'jen', 'name': 'Jen'}
    user = gl.users.create(user_data)
    print(user)
    
    # 列出 create 和 update 时需要的参数
    # get_create_attrs() 创建时需要的参数
    # get_update_attrs() 更新时需要的参数
    
    print(gl.projects.get_create_attrs())
    (('name',), ('path', 'namespace_id', ...))
    
    # 返回的是两个元组, 第一个 必选的参数,第二个是可选的参数
    
    # 获取 对象的属性 ,如 project
    project = gl.projects.get(1)
    print(project.attributes)
    
    # 有些对象提供了 gitlab 相关的资源属性
    project = gl.projects.get(1)
    issues = project.issues.list()
    
    # python-gitlab 允许向 gitlab 发送任何数据,当发送非法数据或者缺少相关参数时会抛出异常
    
    gl.projects.list(sort='invalid value')
    # ...
    # GitlabListError: 400: sort does not have a valid value
    
    # 通过 query_parameters 进行传参 当参数和python 关键字冲突时
    gl.user_activities.list(from='2019-01-01')  ## invalid
    gl.user_activities.list(query_parameters={'from': '2019-01-01'})  # OK
    ログイン後にコピー

    関数のカプセル化の例

    gitlab raw URL経由でファイルをダウンロード
    def download_gitlab_file(url, filename, private_token) :
        """
        从 gitlab 上下载文件
    
        :param url: gitlab raw url
        :param filename: 保存到本地的文件名称
        :param private_token:
        :return:
        """
        import gitlab
        import codecs
    
        def writeLinesToFile(filename, lines, append=False, encoding=None):
            if (append == True):
                file_mode = "a"
            else:
                file_mode = "w"
            encoding = encoding or 'utf-8'
            with codecs.open(filename, file_mode, encoding=encoding) as fp:
                for line in lines:
                    print(unicode(line), file=fp)
    
        url_patterns = url.split("/")
        if len(url_patterns) < 8 :
            raise ValueError("url: `{}` 参数不合法,以 / 分隔之后长度必须大于8".format(url))
        baseurl = "{}//{}".format(url_patterns[0], url_patterns[2])
        namespace = url_patterns[3]
        project_name = url_patterns[4]
        branch = url_patterns[6]
        url_filename = "/".join(url_patterns[7:])
        if url_patterns[5] == "-" :
            branch = url_patterns[7]
            url_filename = "/".join(url_patterns[8:])
    
        gl = gitlab.Gitlab(str(baseurl), private_token)
        projects = gl.projects.list(search=project_name)
        projects = filter(lambda x : x.namespace.get("full_path") == namespace, projects )
        if len(projects) == 0 :
            raise ValueError("根据url 没有找到相应的 project ,请检查当前用户是否有权限或者 url 是否正确 ")
        project = projects[0]
        raw_content = project.files.raw(file_path=url_filename, ref=branch)
        writeLinesToFile(filename, [raw_content])
        return raw_content
    ログイン後にコピー
    ソースコード分析
    ソースコードアドレス: https://github.com/ python-gitlab/python-gitlab/

    setup.py#L31:5

    from setuptools import setup
    from setuptools import find_packages
    ...
    setup(
        name="python-gitlab",
        ...
        entry_points={"console_scripts": ["gitlab = gitlab.cli:main"]},
        ....
    )
    ログイン後にコピー

    からわかるように、python-gitlab はパッケージ化に setuptools を使用しており、2 つのパッケージがあります。

    ##Python ライブラリとして使用 (デフォルト)

      ##entry_points={"console_scripts": ["gitlab = gitlab.cli:main" ]}
    • は、cli として使用できることを示します。コマンドは

      gitlab

      で、実際の呼び出しは
    • gitlab.cli:main
    • function

      ## エントリ ファイル cli.py を見てみましょう。エントリ ファイルから、cli.py#L182:14<div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">def main(): import gitlab.v4.cli ... # 可以跳转到这个函数中查看 parser = _get_base_parser(add_help=False) ... def _get_base_parser(add_help: bool = True) -&gt; argparse.ArgumentParser:     parser = argparse.ArgumentParser(         add_help=add_help, description=&quot;GitLab API Command Line Interface&quot;     )     parser.add_argument(&quot;--version&quot;, help=&quot;Display the version.&quot;, action=&quot;store_true&quot;)     parser.add_argument(         &quot;-v&quot;,         &quot;--verbose&quot;,         &quot;--fancy&quot;,         help=&quot;Verbose mode (legacy format only)&quot;,         action=&quot;store_true&quot;,     ) ...</pre><div class="contentsignin">ログイン後にコピー</div></div> cli 解析ライブラリを使用できることがわかります。ここ argparse コマンドラインパラメータの解析を行います。 </h5> <p><code>GitlabCLI class cli.py#L29:7 を通して、

      class GitlabCLI(object):
          def __init__(self, gl, what, action, args):
              self.cls_name = cli.what_to_cls(what)
              self.cls = gitlab.v4.objects.__dict__[self.cls_name]
              self.what = what.replace("-", "_")
              self.action = action.lower()
              self.gl = gl
              self.args = args
              self.mgr_cls = getattr(gitlab.v4.objects, self.cls.__name__ + "Manager")
              # We could do something smart, like splitting the manager name to find
              # parents, build the chain of managers to get to the final object.
              # Instead we do something ugly and efficient: interpolate variables in
              # the class _path attribute, and replace the value with the result.
              self.mgr_cls._path = self.mgr_cls._path % self.args
              self.mgr = self.mgr_cls(gl)
      
              if self.mgr_cls._types:
                  for attr_name, type_cls in self.mgr_cls._types.items():
                      if attr_name in self.args.keys():
                          obj = type_cls()
                          obj.set_from_cli(self.args[attr_name])
                          self.args[attr_name] = obj.get()
      ログイン後にコピー

      cli の基本形式が gitlab what action args であることがわかります。これは、

      cli

      の章で説明されている cli

      gitlab でサポートされているリソースに対して実行される操作と、この操作に対応するパラメーターです。

      client を読むことで.py client.py#L446 :9 このファイルは <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">def http_request(         self,         verb: str,         path: str,         query_data: Optional[Dict[str, Any]] = None,         post_data: Optional[Dict[str, Any]] = None,         streamed: bool = False,         files: Optional[Dict[str, Any]] = None,         **kwargs: Any,     ) -&gt; requests.Response:         &quot;&quot;&quot;Make an HTTP request to the Gitlab server.         Args:             verb (str): The HTTP method to call ('get', 'post', 'put',                         'delete')             path (str): Path or full URL to query ('/projects' or                         'http://whatever/v4/api/projecs')             query_data (dict): Data to send as query parameters             post_data (dict): Data to send in the body (will be converted to                               json)             streamed (bool): Whether the data should be streamed             files (dict): The files to send to the server             **kwargs: Extra options to send to the server (e.g. sudo)         Returns:             A requests result object.         Raises:             GitlabHttpError: When the return code is not 2xx         &quot;&quot;&quot;         query_data = query_data or {}         url = self._build_url(path)         params: Dict[str, Any] = {}         utils.copy_dict(params, query_data)         # Deal with kwargs: by default a user uses kwargs to send data to the         # gitlab server, but this generates problems (python keyword conflicts         # and python-gitlab/gitlab conflicts).         # So we provide a `query_parameters` key: if it's there we use its dict         # value as arguments for the gitlab server, and ignore the other         # arguments, except pagination ones (per_page and page)         if &quot;query_parameters&quot; in kwargs:             utils.copy_dict(params, kwargs[&quot;query_parameters&quot;])             for arg in (&quot;per_page&quot;, &quot;page&quot;):                 if arg in kwargs:                     params[arg] = kwargs[arg]         else:             utils.copy_dict(params, kwargs)         opts = self._get_session_opts(content_type=&quot;application/json&quot;)         verify = opts.pop(&quot;verify&quot;)         timeout = opts.pop(&quot;timeout&quot;)         # If timeout was passed into kwargs, allow it to override the default         timeout = kwargs.get(&quot;timeout&quot;, timeout)         # We need to deal with json vs. data when uploading files         if files:             json = None             if post_data is None:                 post_data = {}             post_data[&quot;file&quot;] = files.get(&quot;file&quot;)             post_data[&quot;avatar&quot;] = files.get(&quot;avatar&quot;)             data = MultipartEncoder(post_data)             opts[&quot;headers&quot;][&quot;Content-type&quot;] = data.content_type         else:             json = post_data             data = None         # Requests assumes that `.` should not be encoded as %2E and will make         # changes to urls using this encoding. Using a prepped request we can         # get the desired behavior.         # The Requests behavior is right but it seems that web servers don't         # always agree with this decision (this is the case with a default         # gitlab installation)         req = requests.Request(verb, url, json=json, data=data, params=params, **opts)         prepped = self.session.prepare_request(req)         prepped.url = utils.sanitized_url(prepped.url)         settings = self.session.merge_environment_settings(             prepped.url, {}, streamed, verify, None         )         # obey the rate limit by default         obey_rate_limit = kwargs.get(&quot;obey_rate_limit&quot;, True)         # do not retry transient errors by default         retry_transient_errors = kwargs.get(&quot;retry_transient_errors&quot;, False)         # set max_retries to 10 by default, disable by setting it to -1         max_retries = kwargs.get(&quot;max_retries&quot;, 10)         cur_retries = 0 ...</pre><div class="contentsignin">ログイン後にコピー</div></div> で見ることができます

      以上がPython での gitlab ライブラリの用途は何ですか?の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

    このウェブサイトの声明
    この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。

    ホットAIツール

    Undresser.AI Undress

    Undresser.AI Undress

    リアルなヌード写真を作成する AI 搭載アプリ

    AI Clothes Remover

    AI Clothes Remover

    写真から衣服を削除するオンライン AI ツール。

    Undress AI Tool

    Undress AI Tool

    脱衣画像を無料で

    Clothoff.io

    Clothoff.io

    AI衣類リムーバー

    AI Hentai Generator

    AI Hentai Generator

    AIヘンタイを無料で生成します。

    ホットツール

    メモ帳++7.3.1

    メモ帳++7.3.1

    使いやすく無料のコードエディター

    SublimeText3 中国語版

    SublimeText3 中国語版

    中国語版、とても使いやすい

    ゼンドスタジオ 13.0.1

    ゼンドスタジオ 13.0.1

    強力な PHP 統合開発環境

    ドリームウィーバー CS6

    ドリームウィーバー CS6

    ビジュアル Web 開発ツール

    SublimeText3 Mac版

    SublimeText3 Mac版

    神レベルのコード編集ソフト(SublimeText3)

    PSが荷重を見せ続ける理由は何ですか? PSが荷重を見せ続ける理由は何ですか? Apr 06, 2025 pm 06:39 PM

    PSの「読み込み」の問題は、リソースアクセスまたは処理の問題によって引き起こされます。ハードディスクの読み取り速度は遅いか悪いです。CrystaldiskInfoを使用して、ハードディスクの健康を確認し、問題のあるハードディスクを置き換えます。不十分なメモリ:高解像度の画像と複雑な層処理に対するPSのニーズを満たすためのメモリをアップグレードします。グラフィックカードドライバーは時代遅れまたは破損しています:ドライバーを更新して、PSとグラフィックスカードの間の通信を最適化します。ファイルパスが長すぎるか、ファイル名に特殊文字があります。短いパスを使用して特殊文字を避けます。 PS独自の問題:PSインストーラーを再インストールまたは修理します。

    PSが開始されたときにロードの問題を解決する方法は? PSが開始されたときにロードの問題を解決する方法は? Apr 06, 2025 pm 06:36 PM

    ブートがさまざまな理由によって引き起こされる可能性がある場合、「読み込み」に巻き込まれたPS:腐敗したプラグインまたは競合するプラグインを無効にします。破損した構成ファイルの削除または名前変更。不十分なプログラムを閉じたり、メモリをアップグレードしたりして、メモリが不十分であることを避けます。ソリッドステートドライブにアップグレードして、ハードドライブの読み取りをスピードアップします。 PSを再インストールして、破損したシステムファイルまたはインストールパッケージの問題を修復します。エラーログ分析の起動プロセス中にエラー情報を表示します。

    PSの負荷速度をスピードアップする方法は? PSの負荷速度をスピードアップする方法は? Apr 06, 2025 pm 06:27 PM

    Slow Photoshopの起動の問題を解決するには、次のような多面的なアプローチが必要です。ハードウェアのアップグレード(メモリ、ソリッドステートドライブ、CPU)。時代遅れまたは互換性のないプラグインのアンインストール。システムのゴミと過剰な背景プログラムを定期的にクリーンアップします。無関係なプログラムを慎重に閉鎖する。起動中に多数のファイルを開くことを避けます。

    PSがファイルを開いたときにロードの問題を解決する方法は? PSがファイルを開いたときにロードの問題を解決する方法は? Apr 06, 2025 pm 06:33 PM

    「ロード」は、PSでファイルを開くときに発生します。理由には、ファイルが大きすぎるか破損しているか、メモリが不十分で、ハードディスクの速度が遅い、グラフィックカードドライバーの問題、PSバージョンまたはプラグインの競合が含まれます。ソリューションは、ファイルのサイズと整合性を確認し、メモリの増加、ハードディスクのアップグレード、グラフィックカードドライバーの更新、不審なプラグインをアンインストールまたは無効にし、PSを再インストールします。この問題は、PSパフォーマンス設定を徐々にチェックして使用し、優れたファイル管理習慣を開発することにより、効果的に解決できます。

    PSが常にロードされていることを常に示しているときに、ロードの問題を解決する方法は? PSが常にロードされていることを常に示しているときに、ロードの問題を解決する方法は? Apr 06, 2025 pm 06:30 PM

    PSカードは「ロード」ですか?ソリューションには、コンピューターの構成(メモリ、ハードディスク、プロセッサ)の確認、ハードディスクの断片化のクリーニング、グラフィックカードドライバーの更新、PS設定の調整、PSの再インストール、優れたプログラミング習慣の開発が含まれます。

    PSフェザーリングは、遷移の柔らかさをどのように制御しますか? PSフェザーリングは、遷移の柔らかさをどのように制御しますか? Apr 06, 2025 pm 07:33 PM

    羽毛の鍵は、その漸進的な性質を理解することです。 PS自体は、勾配曲線を直接制御するオプションを提供しませんが、複数の羽毛、マッチングマスク、および細かい選択により、半径と勾配の柔らかさを柔軟に調整して、自然な遷移効果を実現できます。

    インストール後にMySQLの使用方法 インストール後にMySQLの使用方法 Apr 08, 2025 am 11:48 AM

    この記事では、MySQLデータベースの操作を紹介します。まず、MySQLWorkBenchやコマンドラインクライアントなど、MySQLクライアントをインストールする必要があります。 1. mysql-uroot-pコマンドを使用してサーバーに接続し、ルートアカウントパスワードでログインします。 2。CreatedAtaBaseを使用してデータベースを作成し、データベースを選択します。 3. createTableを使用してテーブルを作成し、フィールドとデータ型を定義します。 4. INSERTINTOを使用してデータを挿入し、データをクエリし、更新することでデータを更新し、削除してデータを削除します。これらの手順を習得することによってのみ、一般的な問題に対処することを学び、データベースのパフォーマンスを最適化することでMySQLを効率的に使用できます。

    MySQLインストール後にデータベースのパフォーマンスを最適化する方法 MySQLインストール後にデータベースのパフォーマンスを最適化する方法 Apr 08, 2025 am 11:36 AM

    MySQLパフォーマンスの最適化は、インストール構成、インデックス作成、クエリの最適化、監視、チューニングの3つの側面から開始する必要があります。 1。インストール後、INNODB_BUFFER_POOL_SIZEパラメーターやclose query_cache_sizeなど、サーバーの構成に従ってmy.cnfファイルを調整する必要があります。 2。過度のインデックスを回避するための適切なインデックスを作成し、説明コマンドを使用して実行計画を分析するなど、クエリステートメントを最適化します。 3. MySQL独自の監視ツール(ShowProcessList、ShowStatus)を使用して、データベースの健康を監視し、定期的にデータベースをバックアップして整理します。これらの手順を継続的に最適化することによってのみ、MySQLデータベースのパフォーマンスを改善できます。

    See all articles