Exemplo n.º 1
0
    def _broadcastSubscriptionIncrease(self, channel, indexKey, tid, newIds):
        newIds = list(newIds)

        fieldDef = self._currentTypeMap().fieldIdToDef[indexKey.fieldId]

        channel.channel.write(
            ServerToClient.SubscriptionIncrease(
                schema=fieldDef.schema,
                typename=fieldDef.typename,
                fieldname_and_value=(fieldDef.fieldname, indexKey.indexValue),
                identities=newIds,
                transaction_id=tid))
Exemplo n.º 2
0
    def _broadcastSubscriptionIncrease(self, channel, indexKey, newIds):
        newIds = list(newIds)

        schema_name, typename, fieldname, fieldval = keymapping.split_index_key_full(indexKey)

        channel.channel.write(
            ServerToClient.SubscriptionIncrease(
                schema=schema_name,
                typename=typename,
                fieldname_and_value=(fieldname, fieldval),
                identities=newIds
                )
            )