src/dirbs/listgen/generator.py
def _create_missing_delta_storage_partitions(self, conn):
        """Loops through the operators and makes sure we have a notifications/exception partition available."""
        with CodeProfiler() as cp:
            # We deliberately don't create indexes straight away as the first time we create a partition it is
            # likely to be a bulk insert where indexes will hurt performance
            for parent_name, child_name_fn in [(self._notifications_lists_tblname,
                                                self._notifications_lists_part_tblname),
                                               (self._exceptions_lists_tblname, self._exceptions_lists_part_tblname)]:
                self._create_operator_partitions(conn,
                                                 parent_tbl_name=parent_name,
                                                 child_name_fn=child_name_fn,
                                                 is_unlogged=False,
                                                 allow_existing=True,
                                                 fillfactor=45)

        return -1, cp.duration
Loops through the operators and makes sure we have a notifications/exception partition available.
Loops through the operators and makes sure we have a notifications/exception partition available.
Loops through the operators and makes sure we have a notifications / exception partition available .
def _create_missing_delta_storage_partitions(self, conn):
        with CodeProfiler() as cp:
            for parent_name, child_name_fn in [(self._notifications_lists_tblname,
                                                self._notifications_lists_part_tblname),
                                               (self._exceptions_lists_tblname, self._exceptions_lists_part_tblname)]:
                self._create_operator_partitions(conn,
                                                 parent_tbl_name=parent_name,
                                                 child_name_fn=child_name_fn,
                                                 is_unlogged=False,
                                                 allow_existing=True,
                                                 fillfactor=45)
        return -1, cp.duration
def _create_missing_delta_storage_partitions ( self , conn ) : with CodeProfiler ( ) as cp : for parent_name , child_name_fn in [ ( self . _notifications_lists_tblname , self . _notifications_lists_part_tblname ) , ( self . _exceptions_lists_tblname , self . _exceptions_lists_part_tblname ) ] : self . _create_operator_partitions ( conn , parent_tbl_name = parent_name , child_name_fn = child_name_fn , is_unlogged = False , allow_existing = True , fillfactor = 45 ) return - 1 , cp . duration
Loops through the operators and makes sure we have a notifications/exception partition available.
Loops through the operators and makes sure we have a notifications / exception partition available .
"""Loops through the operators and makes sure we have a notifications/exception partition available.""" # We deliberately don't create indexes straight away as the first time we create a partition it is # likely to be a bulk insert where indexes will hurt performance
self
conn