Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-899

PostgresConnection.initTypeRegistry() takes ~24 mins

XMLWordPrintable

      For our database, PostgresConnection.initTypeRegistry() takes ~24 mins.
      Here are the counts for the queries used in the method :

      SELECT count(*) FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON (t.typnamespace = n.oid) WHERE n.nspname != 'pg_toast' and t.typcategory='A';
       count
      -------
       78,672
      (1 row)
      
      SELECT count(*) FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON (t.typnamespace = n.oid) WHERE n.nspname != 'pg_toast' and t.typcategory<>'A';
       count
      -------
       81,287
      (1 row)
      

      Our pg_catalog.pg_type table contains 199,280 rows.
      Our pg_catalog.pg_namespace table contains 1,541 rows.

            gunnar.morling Gunnar Morling
            dajerome David Jerome (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: