Пример #1
0
 def add_arguments(self, parser):
     parser.add_argument("--only", choices=list(MATERIALIZED_VIEWS.keys()))
     parser.add_argument(
         "--leave-sql",
         action="store_true",
         help="Leave the generated SQL files instead of cleaning them after script completion.",
     )
     parser.add_argument(
         "--leave-old",
         action="store_true",
         help="Leave the old materialized views instead of dropping them from the DB.",
     )
     parser.add_argument(
         "--temp-dir",
         type=Path,
         help="Choose a non-default directory to store materialized view SQL files.",
         default=DEFAULT_MATIVEW_DIR,
     )
     parser.add_argument(
         "--temp-chunked-dir",
         type=Path,
         help="Choose a non-default directory to store materialized view SQL files.",
         default=DEFAULT_CHUNKED_MATIVEW_DIR,
     )
     parser.add_argument(
         "--dependencies", action="store_true", help="Run the SQL dependencies before the materialized view SQL."
     )
     parser.add_argument(
         "--chunk-count", default=10, help="Number of chunks to split chunked matviews into", type=int
     )
Пример #2
0
 def add_arguments(self, parser):
     parser.add_argument(
         "--only",
         choices=list(MATERIALIZED_VIEWS.keys()) + ["none"],
         help=
         "If matviews are listed with this option, only those matviews will be run. 'none' will result in no matviews being run",
     )
     parser.add_argument(
         "--leave-sql",
         action="store_true",
         help=
         "Leave the generated SQL files instead of cleaning them after script completion.",
     )
     parser.add_argument(
         "--leave-old",
         action="store_true",
         help=
         "Leave the old materialized views instead of dropping them from the DB.",
     )
     parser.add_argument(
         "--temp-dir",
         type=Path,
         help=
         "Choose a non-default directory to store materialized view SQL files.",
         default=DEFAULT_MATIVEW_DIR,
     )
     parser.add_argument(
         "--temp-chunked-dir",
         type=Path,
         help=
         "Choose a non-default directory to store materialized view SQL files.",
         default=DEFAULT_CHUNKED_MATIVEW_DIR,
     )
     parser.add_argument(
         "--dependencies",
         action="store_true",
         help="Run the SQL dependencies before the materialized view SQL.")
     parser.add_argument(
         "--chunk-count",
         default=10,
         help="Number of chunks to split chunked matviews into",
         type=int)
     parser.add_argument(
         "--include-chunked-matviews",
         action="store_true",
         help=
         "Chunked Transaction Search matviews will be refreshed and inserted into table",
     )
     parser.add_argument("--index-concurrency",
                         default=20,
                         help="Number of indexes to be created at once",
                         type=int)
Пример #3
0
 def add_arguments(self, parser):
     parser.add_argument("--only", choices=list(MATERIALIZED_VIEWS.keys()))
     parser.add_argument(
         "--leave-sql",
         action="store_true",
         help="Leave the generated SQL files instead of cleaning them after script completion.",
     )
     parser.add_argument(
         "--temp-dir",
         type=Path,
         help="Choose a non-default directory to store materialized view SQL files.",
         default=DEFAULT_MATIVEW_DIR,
     )