Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap sync peewee calls in batch loaders #1222

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pylipp
Copy link
Contributor

@pylipp pylipp commented Feb 7, 2024

fragment ProductBasicFields on Product {
  id
  name
  gender
  deletedOn
  __typename
}

fragment SizeBasicFields on Size {
  id
  label
  __typename
}

fragment TagBasicFields on Tag {
  id
  name
  color
  description
  type
  __typename
}

query BoxesForBoxesView($baseId: ID!, $filterInput: FilterBoxInput) {
  boxes(
    baseId: $baseId
    filterInput: $filterInput
    paginationInput: {first: 100000}
  ) {
    totalCount
    pageInfo {
      hasNextPage
      __typename
    }
    elements {
      labelIdentifier
      product {
        ...ProductBasicFields
        __typename
      }
      numberOfItems
      size {
        ...SizeBasicFields
        __typename
      }
      state
      location {
        id
        name
        __typename
      }
      tags {
        ...TagBasicFields
        __typename
      }
      shipmentDetail {
        id
        shipment {
          id
          __typename
        }
        __typename
      }
      comment
      createdOn
      lastModifiedOn
      __typename
    }
    __typename
  }
}

Results

Using docker-compose webapp service and dropapp_dev DB (init.sql).

  1. Variant: wrap peewee select calls using asyncio.to_thread
  2. Variant: define threadpoolexecutor and run it via event loop to wrap peewee calls
  3. Variant: naive (master)

No significant difference in logged times. Also the two variants using wrapping of select calls are very similar (larger teardown than naive variant though)

# using asyncio.in_thread
1721644818.107808 | ('SELECT FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE ((`t1`.`id` > %s) AND %s) ORDER BY `t1`.`id` LIMIT %s', [1, 0, 0, True, 100001])
1721644818.239037 | ('SELECT FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE ((`t1`.`id` < %s) AND %s) LIMIT %s OFFSET %s', [1, 0, 100000247, True, 1, 0])
1721644818.242898 | ('SELECT COUNT(1) FROM (SELECT 1 FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE %s) AS `_wrapped`', [1, 0, True])
1721644818.509166 | ('SELECT FROM `sizes` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))', [71, 68, 52, 35, 63, 5, 111, 3, 136, 118, 2, 1, 44, 97, 125, 109, 139, 4, 60, 124, 137, 108, 53, 47, 110, 138, 14, 135, 69, 117, 67, 45, 20, 51, 132, 32, 29, 114, 116, 59, 112, 48, 113, 131, 115, 15, 21, 133, 57, 33, 31])
1721644818.522562 | ('SELECT FROM `tags_relations` AS `t1` INNER JOIN `tags` AS `t2` ON ((((`t1`.`tag_id` = `t2`.`id`) AND (`t1`.`object_type` = %s)) AND (`t1`.`object_id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))) AND (`t2`.`camp_id` IN (%s)))', ['Stock', 100000247, 100000248, 100000249, 100000250, 100000251, 100000252, 100000253, 100000254, 100000255, 100000256, 100000257, 100000258, 100000259, 100000260, 100000261, 100000262, 100000263, 100000264, 100000265, 100000266, 100000267, 100000268, 100000269, 100000271, 100000272, 100000273, 100000274, 100000275, 100000276, 100000277, 100000278, 100000279, 100000280, 100000281, 100000282, 100000283, 100000284, 100000285, 100000286, 100000287, 100000288, 100000289, 100000290, 100000291, 100000292, 100000293, 100000294, 100000295, 100000296, 100000297, 100000298, 100000299, 100000300, 100000301, 100000302, 100000303, 100000304, 100000305, 100000306, 100000307, 100000308, 100000309, 100000310, 100000311, 100000312, 100000313, 100000314, 100000315, 100000316, 100000317, 100000318, 100000319, 100000320, 100000321, 100000322, 100000323, 100000324, 100000325, 100000326, 100000327, 100000328, 100000329, 100000330, 100000331, 100000332, 100000333, 100000334, 100000336, 100000337, 100000338, 100000339, 100000340, 100000341, 100000342, 100000343, 100000344, 100000345, 100000346, 100000347, 100000348, 100000349, 100000350, 100000351, 100000352, 100000353, 100000354, 100000355, 100000356, 100000357, 100000358, 100000359, 100000360, 100000361, 100000362, 100000363, 100000364, 100000365, 100000366, 100000367, 100000368, 100000369, 100000370, 100000371, 100000372, 100000373, 100000374, 100000376, 100000377, 100000378, 100000379, 100000380, 100000381, 100000382, 100000383, 100000384, 100000385, 100000386, 100000387, 100000388, 100000389, 100000390, 100000391, 100000392, 100000393, 100000394, 100000395, 100000396, 100000397, 100000398, 100000399, 100000400, 100000401, 100000402, 100000403, 100000404, 100000405, 100000406, 100000407, 100000408, 100000409, 100000410, 100000411, 100000412, 100000413, 100000415, 100000416, 100000417, 100000418, 100000419, 100000420, 100000421, 100000422, 100000423, 100000424, 100000425, 100000426, 100000427, 100000428, 100000429, 100000430, 100000431, 100000432, 100000433, 100000434, 100000435, 100000436, 100000437, 100000438, 100000439, 100000440, 100000441, 100000442, 100000443, 100000444, 100000445, 100000446, 100000447, 100000448, 100000449, 100000450, 100000451, 100000452, 100000453, 100000454, 100000455, 100000456, 100000457, 100000458, 100000459, 100000460, 100000461, 100000462, 100000463, 100000464, 100000465, 100000466, 100000467, 100000468, 100000469, 100000470, 100000471, 100000472, 100000473, 100000474, 100000475, 100000476, 100000477, 100000478, 100000479, 100000481, 100000482, 100000483, 100000484, 100000485, 100000486, 100000487, 100000488, 100000489, 100000490, 100000491, 100000492, 100000493, 100000494, 100000495, 100000496, 100000497, 100000498, 100000499, 100000500, 100000501, 100000502, 100000503, 100000504, 100000505, 100000506, 100000507, 100000508, 100000509, 100000510, 100000511, 100000512, 100000513, 100000514, 100000515, 100000516, 100000517, 100000518, 100000519, 100000520, 100000521, 100000522, 100000523, 100000524, 100000525, 100000526, 100000527, 100000528, 100000529, 100000530, 100000531, 100000532, 100000533, 100000534, 100000535, 100000536, 100000537, 100000538, 100000539, 100000540, 100000541, 100000542, 100000543, 100000544, 100000545, 100000546, 100000547, 100000548, 100000549, 100000550, 100000551, 100000552, 100000553, 100000554, 100000555, 100000556, 100000557, 100000558, 100000559, 100000560, 100000561, 100000562, 100000563, 100000564, 100000565, 100000566, 100000567, 100000568, 100000569, 100000570, 100000571, 100000572, 100000573, 100000574, 100000575, 100000576, 100000577, 100000578, 100000579, 100000580, 100000581, 100000582, 100000583, 100000584, 100000585, 100000586, 100000587, 100000588, 100000589, 100000590, 100000591, 100000592, 100000593, 100000594, 100000595, 100000596, 100000597, 100000598, 100000599, 100000600, 100000601, 100000602, 100000603, 100000604, 100000605, 100000606, 100000607, 100000608, 100000609, 100000610, 100000611, 100000612, 100000613, 100000614, 100000615, 100000616, 100000617, 100000618, 100000619, 100000620, 100000621, 100000622, 100000623, 100000624, 100000625, 100000626, 100000627, 100000628, 100000629, 100000630, 100000631, 100000632, 100000633, 100000634, 100000635, 100000636, 100000638, 100000639, 100000640, 100000641, 100000642, 100000643, 100000644, 100000645, 100000646, 100000647, 100000648, 100000649, 100000650, 100000651, 100000652, 100000653, 100000654, 100000655, 100000656, 100000657, 100000658, 100000659, 100000660, 100000661, 100000662, 100000663, 100000664, 100000665, 100000666, 100000667, 100000668, 100000669, 100000670, 100000671, 100000672, 100000673, 100000674, 100000675, 100000676, 100000677, 100000678, 100000679, 100000680, 100000681, 100000682, 100000683, 100000684, 100000685, 100000686, 100000687, 100000688, 100000689, 100000690, 100000691, 100000692, 100000693, 100000694, 100000695, 100000696, 100000697, 100000698, 100000699, 100000700, 100000701, 100000702, 100000703, 100000704, 100000705, 100000706, 100000707, 100000708, 100000709, 100000710, 100000711, 100000712, 100000713, 100000714, 100000715, 100000716, 100000717, 100000718, 100000719, 100000720, 100000721, 100000722, 100000723, 100000724, 100000725, 100000726, 100000727, 100000728, 100000729, 100000730, 100000731, 100000732, 100000733, 100000734, 100000735, 100000736, 100000737, 100000738, 100000739, 100000740, 100000741, 100000742, 100000743, 100000744, 100000745, 100000746, 1])
1721644818.545349 | ('SELECT FROM `shipment_detail` AS `t1` WHERE ((((`t1`.`box_id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)) AND (`t1`.`removed_on` IS NULL)) AND (`t1`.`lost_on` IS NULL)) AND (`t1`.`received_on` IS NULL))', [100000247, 100000248, 100000249, 100000250, 100000251, 100000252, 100000253, 100000254, 100000255, 100000256, 100000257, 100000258, 100000259, 100000260, 100000261, 100000262, 100000263, 100000264, 100000265, 100000266, 100000267, 100000268, 100000269, 100000271, 100000272, 100000273, 100000274, 100000275, 100000276, 100000277, 100000278, 100000279, 100000280, 100000281, 100000282, 100000283, 100000284, 100000285, 100000286, 100000287, 100000288, 100000289, 100000290, 100000291, 100000292, 100000293, 100000294, 100000295, 100000296, 100000297, 100000298, 100000299, 100000300, 100000301, 100000302, 100000303, 100000304, 100000305, 100000306, 100000307, 100000308, 100000309, 100000310, 100000311, 100000312, 100000313, 100000314, 100000315, 100000316, 100000317, 100000318, 100000319, 100000320, 100000321, 100000322, 100000323, 100000324, 100000325, 100000326, 100000327, 100000328, 100000329, 100000330, 100000331, 100000332, 100000333, 100000334, 100000336, 100000337, 100000338, 100000339, 100000340, 100000341, 100000342, 100000343, 100000344, 100000345, 100000346, 100000347, 100000348, 100000349, 100000350, 100000351, 100000352, 100000353, 100000354, 100000355, 100000356, 100000357, 100000358, 100000359, 100000360, 100000361, 100000362, 100000363, 100000364, 100000365, 100000366, 100000367, 100000368, 100000369, 100000370, 100000371, 100000372, 100000373, 100000374, 100000376, 100000377, 100000378, 100000379, 100000380, 100000381, 100000382, 100000383, 100000384, 100000385, 100000386, 100000387, 100000388, 100000389, 100000390, 100000391, 100000392, 100000393, 100000394, 100000395, 100000396, 100000397, 100000398, 100000399, 100000400, 100000401, 100000402, 100000403, 100000404, 100000405, 100000406, 100000407, 100000408, 100000409, 100000410, 100000411, 100000412, 100000413, 100000415, 100000416, 100000417, 100000418, 100000419, 100000420, 100000421, 100000422, 100000423, 100000424, 100000425, 100000426, 100000427, 100000428, 100000429, 100000430, 100000431, 100000432, 100000433, 100000434, 100000435, 100000436, 100000437, 100000438, 100000439, 100000440, 100000441, 100000442, 100000443, 100000444, 100000445, 100000446, 100000447, 100000448, 100000449, 100000450, 100000451, 100000452, 100000453, 100000454, 100000455, 100000456, 100000457, 100000458, 100000459, 100000460, 100000461, 100000462, 100000463, 100000464, 100000465, 100000466, 100000467, 100000468, 100000469, 100000470, 100000471, 100000472, 100000473, 100000474, 100000475, 100000476, 100000477, 100000478, 100000479, 100000481, 100000482, 100000483, 100000484, 100000485, 100000486, 100000487, 100000488, 100000489, 100000490, 100000491, 100000492, 100000493, 100000494, 100000495, 100000496, 100000497, 100000498, 100000499, 100000500, 100000501, 100000502, 100000503, 100000504, 100000505, 100000506, 100000507, 100000508, 100000509, 100000510, 100000511, 100000512, 100000513, 100000514, 100000515, 100000516, 100000517, 100000518, 100000519, 100000520, 100000521, 100000522, 100000523, 100000524, 100000525, 100000526, 100000527, 100000528, 100000529, 100000530, 100000531, 100000532, 100000533, 100000534, 100000535, 100000536, 100000537, 100000538, 100000539, 100000540, 100000541, 100000542, 100000543, 100000544, 100000545, 100000546, 100000547, 100000548, 100000549, 100000550, 100000551, 100000552, 100000553, 100000554, 100000555, 100000556, 100000557, 100000558, 100000559, 100000560, 100000561, 100000562, 100000563, 100000564, 100000565, 100000566, 100000567, 100000568, 100000569, 100000570, 100000571, 100000572, 100000573, 100000574, 100000575, 100000576, 100000577, 100000578, 100000579, 100000580, 100000581, 100000582, 100000583, 100000584, 100000585, 100000586, 100000587, 100000588, 100000589, 100000590, 100000591, 100000592, 100000593, 100000594, 100000595, 100000596, 100000597, 100000598, 100000599, 100000600, 100000601, 100000602, 100000603, 100000604, 100000605, 100000606, 100000607, 100000608, 100000609, 100000610, 100000611, 100000612, 100000613, 100000614, 100000615, 100000616, 100000617, 100000618, 100000619, 100000620, 100000621, 100000622, 100000623, 100000624, 100000625, 100000626, 100000627, 100000628, 100000629, 100000630, 100000631, 100000632, 100000633, 100000634, 100000635, 100000636, 100000638, 100000639, 100000640, 100000641, 100000642, 100000643, 100000644, 100000645, 100000646, 100000647, 100000648, 100000649, 100000650, 100000651, 100000652, 100000653, 100000654, 100000655, 100000656, 100000657, 100000658, 100000659, 100000660, 100000661, 100000662, 100000663, 100000664, 100000665, 100000666, 100000667, 100000668, 100000669, 100000670, 100000671, 100000672, 100000673, 100000674, 100000675, 100000676, 100000677, 100000678, 100000679, 100000680, 100000681, 100000682, 100000683, 100000684, 100000685, 100000686, 100000687, 100000688, 100000689, 100000690, 100000691, 100000692, 100000693, 100000694, 100000695, 100000696, 100000697, 100000698, 100000699, 100000700, 100000701, 100000702, 100000703, 100000704, 100000705, 100000706, 100000707, 100000708, 100000709, 100000710, 100000711, 100000712, 100000713, 100000714, 100000715, 100000716, 100000717, 100000718, 100000719, 100000720, 100000721, 100000722, 100000723, 100000724, 100000725, 100000726, 100000727, 100000728, 100000729, 100000730, 100000731, 100000732, 100000733, 100000734, 100000735, 100000736, 100000737, 100000738, 100000739, 100000740, 100000741, 100000742, 100000743, 100000744, 100000745, 100000746])
1721644818.621225 | ('SELECT FROM `locations` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s))', [100000038, 100000037, 100000036, 100000040, 100000039])
1721644818.623711 | ('SELECT FROM `products` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))', [1194, 1227, 1202, 1229, 1213, 1201, 1187, 1177, 1239, 1184, 1170, 1236, 1235, 1168, 1180, 1171, 1237, 1199, 1175, 1206, 1205, 1208, 1182, 1221, 1173, 1176, 1198, 1212, 1181, 1186, 1166, 1178, 1195, 1218, 1240, 1200, 1169, 1188, 1192, 1196, 1203, 1183, 1174, 1209, 1204, 1189, 1234, 1193, 1210, 1224, 1216, 1191, 1215, 1172, 1185, 1226, 1179, 1219, 1167, 1190, 1214, 1225, 1207, 1223, 1217, 1197, 1230, 1228, 1211, 1222])
1721644819.044714 | done

# using explicitly defined executor
1721644488.622905 | ('SELECT FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE ((`t1`.`id` > %s) AND %s) ORDER BY `t1`.`id` LIMIT %s', [1, 0, 0, True, 100001])
1721644488.798135 | ('SELECT FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE ((`t1`.`id` < %s) AND %s) LIMIT %s OFFSET %s', [1, 0, 100000247, True, 1, 0])
1721644488.802876 | ('SELECT COUNT(1) FROM (SELECT 1 FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE %s) AS `_wrapped`', [1, 0, True])
1721644489.076591 | ('SELECT FROM `sizes` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))', [71, 68, 52, 35, 63, 5, 111, 3, 136, 118, 2, 1, 44, 97, 125, 109, 139, 4, 60, 124, 137, 108, 53, 47, 110, 138, 14, 135, 69, 117, 67, 45, 20, 51, 132, 32, 29, 114, 116, 59, 112, 48, 113, 131, 115, 15, 21, 133, 57, 33, 31])
1721644489.089026 | ('SELECT FROM `tags_relations` AS `t1` INNER JOIN `tags` AS `t2` ON ((((`t1`.`tag_id` = `t2`.`id`) AND (`t1`.`object_type` = %s)) AND (`t1`.`object_id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))) AND (`t2`.`camp_id` IN (%s)))', ['Stock', 100000247, 100000248, 100000249, 100000250, 100000251, 100000252, 100000253, 100000254, 100000255, 100000256, 100000257, 100000258, 100000259, 100000260, 100000261, 100000262, 100000263, 100000264, 100000265, 100000266, 100000267, 100000268, 100000269, 100000271, 100000272, 100000273, 100000274, 100000275, 100000276, 100000277, 100000278, 100000279, 100000280, 100000281, 100000282, 100000283, 100000284, 100000285, 100000286, 100000287, 100000288, 100000289, 100000290, 100000291, 100000292, 100000293, 100000294, 100000295, 100000296, 100000297, 100000298, 100000299, 100000300, 100000301, 100000302, 100000303, 100000304, 100000305, 100000306, 100000307, 100000308, 100000309, 100000310, 100000311, 100000312, 100000313, 100000314, 100000315, 100000316, 100000317, 100000318, 100000319, 100000320, 100000321, 100000322, 100000323, 100000324, 100000325, 100000326, 100000327, 100000328, 100000329, 100000330, 100000331, 100000332, 100000333, 100000334, 100000336, 100000337, 100000338, 100000339, 100000340, 100000341, 100000342, 100000343, 100000344, 100000345, 100000346, 100000347, 100000348, 100000349, 100000350, 100000351, 100000352, 100000353, 100000354, 100000355, 100000356, 100000357, 100000358, 100000359, 100000360, 100000361, 100000362, 100000363, 100000364, 100000365, 100000366, 100000367, 100000368, 100000369, 100000370, 100000371, 100000372, 100000373, 100000374, 100000376, 100000377, 100000378, 100000379, 100000380, 100000381, 100000382, 100000383, 100000384, 100000385, 100000386, 100000387, 100000388, 100000389, 100000390, 100000391, 100000392, 100000393, 100000394, 100000395, 100000396, 100000397, 100000398, 100000399, 100000400, 100000401, 100000402, 100000403, 100000404, 100000405, 100000406, 100000407, 100000408, 100000409, 100000410, 100000411, 100000412, 100000413, 100000415, 100000416, 100000417, 100000418, 100000419, 100000420, 100000421, 100000422, 100000423, 100000424, 100000425, 100000426, 100000427, 100000428, 100000429, 100000430, 100000431, 100000432, 100000433, 100000434, 100000435, 100000436, 100000437, 100000438, 100000439, 100000440, 100000441, 100000442, 100000443, 100000444, 100000445, 100000446, 100000447, 100000448, 100000449, 100000450, 100000451, 100000452, 100000453, 100000454, 100000455, 100000456, 100000457, 100000458, 100000459, 100000460, 100000461, 100000462, 100000463, 100000464, 100000465, 100000466, 100000467, 100000468, 100000469, 100000470, 100000471, 100000472, 100000473, 100000474, 100000475, 100000476, 100000477, 100000478, 100000479, 100000481, 100000482, 100000483, 100000484, 100000485, 100000486, 100000487, 100000488, 100000489, 100000490, 100000491, 100000492, 100000493, 100000494, 100000495, 100000496, 100000497, 100000498, 100000499, 100000500, 100000501, 100000502, 100000503, 100000504, 100000505, 100000506, 100000507, 100000508, 100000509, 100000510, 100000511, 100000512, 100000513, 100000514, 100000515, 100000516, 100000517, 100000518, 100000519, 100000520, 100000521, 100000522, 100000523, 100000524, 100000525, 100000526, 100000527, 100000528, 100000529, 100000530, 100000531, 100000532, 100000533, 100000534, 100000535, 100000536, 100000537, 100000538, 100000539, 100000540, 100000541, 100000542, 100000543, 100000544, 100000545, 100000546, 100000547, 100000548, 100000549, 100000550, 100000551, 100000552, 100000553, 100000554, 100000555, 100000556, 100000557, 100000558, 100000559, 100000560, 100000561, 100000562, 100000563, 100000564, 100000565, 100000566, 100000567, 100000568, 100000569, 100000570, 100000571, 100000572, 100000573, 100000574, 100000575, 100000576, 100000577, 100000578, 100000579, 100000580, 100000581, 100000582, 100000583, 100000584, 100000585, 100000586, 100000587, 100000588, 100000589, 100000590, 100000591, 100000592, 100000593, 100000594, 100000595, 100000596, 100000597, 100000598, 100000599, 100000600, 100000601, 100000602, 100000603, 100000604, 100000605, 100000606, 100000607, 100000608, 100000609, 100000610, 100000611, 100000612, 100000613, 100000614, 100000615, 100000616, 100000617, 100000618, 100000619, 100000620, 100000621, 100000622, 100000623, 100000624, 100000625, 100000626, 100000627, 100000628, 100000629, 100000630, 100000631, 100000632, 100000633, 100000634, 100000635, 100000636, 100000638, 100000639, 100000640, 100000641, 100000642, 100000643, 100000644, 100000645, 100000646, 100000647, 100000648, 100000649, 100000650, 100000651, 100000652, 100000653, 100000654, 100000655, 100000656, 100000657, 100000658, 100000659, 100000660, 100000661, 100000662, 100000663, 100000664, 100000665, 100000666, 100000667, 100000668, 100000669, 100000670, 100000671, 100000672, 100000673, 100000674, 100000675, 100000676, 100000677, 100000678, 100000679, 100000680, 100000681, 100000682, 100000683, 100000684, 100000685, 100000686, 100000687, 100000688, 100000689, 100000690, 100000691, 100000692, 100000693, 100000694, 100000695, 100000696, 100000697, 100000698, 100000699, 100000700, 100000701, 100000702, 100000703, 100000704, 100000705, 100000706, 100000707, 100000708, 100000709, 100000710, 100000711, 100000712, 100000713, 100000714, 100000715, 100000716, 100000717, 100000718, 100000719, 100000720, 100000721, 100000722, 100000723, 100000724, 100000725, 100000726, 100000727, 100000728, 100000729, 100000730, 100000731, 100000732, 100000733, 100000734, 100000735, 100000736, 100000737, 100000738, 100000739, 100000740, 100000741, 100000742, 100000743, 100000744, 100000745, 100000746, 1])
1721644489.110028 | ('SELECT FROM `shipment_detail` AS `t1` WHERE ((((`t1`.`box_id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)) AND (`t1`.`removed_on` IS NULL)) AND (`t1`.`lost_on` IS NULL)) AND (`t1`.`received_on` IS NULL))', [100000247, 100000248, 100000249, 100000250, 100000251, 100000252, 100000253, 100000254, 100000255, 100000256, 100000257, 100000258, 100000259, 100000260, 100000261, 100000262, 100000263, 100000264, 100000265, 100000266, 100000267, 100000268, 100000269, 100000271, 100000272, 100000273, 100000274, 100000275, 100000276, 100000277, 100000278, 100000279, 100000280, 100000281, 100000282, 100000283, 100000284, 100000285, 100000286, 100000287, 100000288, 100000289, 100000290, 100000291, 100000292, 100000293, 100000294, 100000295, 100000296, 100000297, 100000298, 100000299, 100000300, 100000301, 100000302, 100000303, 100000304, 100000305, 100000306, 100000307, 100000308, 100000309, 100000310, 100000311, 100000312, 100000313, 100000314, 100000315, 100000316, 100000317, 100000318, 100000319, 100000320, 100000321, 100000322, 100000323, 100000324, 100000325, 100000326, 100000327, 100000328, 100000329, 100000330, 100000331, 100000332, 100000333, 100000334, 100000336, 100000337, 100000338, 100000339, 100000340, 100000341, 100000342, 100000343, 100000344, 100000345, 100000346, 100000347, 100000348, 100000349, 100000350, 100000351, 100000352, 100000353, 100000354, 100000355, 100000356, 100000357, 100000358, 100000359, 100000360, 100000361, 100000362, 100000363, 100000364, 100000365, 100000366, 100000367, 100000368, 100000369, 100000370, 100000371, 100000372, 100000373, 100000374, 100000376, 100000377, 100000378, 100000379, 100000380, 100000381, 100000382, 100000383, 100000384, 100000385, 100000386, 100000387, 100000388, 100000389, 100000390, 100000391, 100000392, 100000393, 100000394, 100000395, 100000396, 100000397, 100000398, 100000399, 100000400, 100000401, 100000402, 100000403, 100000404, 100000405, 100000406, 100000407, 100000408, 100000409, 100000410, 100000411, 100000412, 100000413, 100000415, 100000416, 100000417, 100000418, 100000419, 100000420, 100000421, 100000422, 100000423, 100000424, 100000425, 100000426, 100000427, 100000428, 100000429, 100000430, 100000431, 100000432, 100000433, 100000434, 100000435, 100000436, 100000437, 100000438, 100000439, 100000440, 100000441, 100000442, 100000443, 100000444, 100000445, 100000446, 100000447, 100000448, 100000449, 100000450, 100000451, 100000452, 100000453, 100000454, 100000455, 100000456, 100000457, 100000458, 100000459, 100000460, 100000461, 100000462, 100000463, 100000464, 100000465, 100000466, 100000467, 100000468, 100000469, 100000470, 100000471, 100000472, 100000473, 100000474, 100000475, 100000476, 100000477, 100000478, 100000479, 100000481, 100000482, 100000483, 100000484, 100000485, 100000486, 100000487, 100000488, 100000489, 100000490, 100000491, 100000492, 100000493, 100000494, 100000495, 100000496, 100000497, 100000498, 100000499, 100000500, 100000501, 100000502, 100000503, 100000504, 100000505, 100000506, 100000507, 100000508, 100000509, 100000510, 100000511, 100000512, 100000513, 100000514, 100000515, 100000516, 100000517, 100000518, 100000519, 100000520, 100000521, 100000522, 100000523, 100000524, 100000525, 100000526, 100000527, 100000528, 100000529, 100000530, 100000531, 100000532, 100000533, 100000534, 100000535, 100000536, 100000537, 100000538, 100000539, 100000540, 100000541, 100000542, 100000543, 100000544, 100000545, 100000546, 100000547, 100000548, 100000549, 100000550, 100000551, 100000552, 100000553, 100000554, 100000555, 100000556, 100000557, 100000558, 100000559, 100000560, 100000561, 100000562, 100000563, 100000564, 100000565, 100000566, 100000567, 100000568, 100000569, 100000570, 100000571, 100000572, 100000573, 100000574, 100000575, 100000576, 100000577, 100000578, 100000579, 100000580, 100000581, 100000582, 100000583, 100000584, 100000585, 100000586, 100000587, 100000588, 100000589, 100000590, 100000591, 100000592, 100000593, 100000594, 100000595, 100000596, 100000597, 100000598, 100000599, 100000600, 100000601, 100000602, 100000603, 100000604, 100000605, 100000606, 100000607, 100000608, 100000609, 100000610, 100000611, 100000612, 100000613, 100000614, 100000615, 100000616, 100000617, 100000618, 100000619, 100000620, 100000621, 100000622, 100000623, 100000624, 100000625, 100000626, 100000627, 100000628, 100000629, 100000630, 100000631, 100000632, 100000633, 100000634, 100000635, 100000636, 100000638, 100000639, 100000640, 100000641, 100000642, 100000643, 100000644, 100000645, 100000646, 100000647, 100000648, 100000649, 100000650, 100000651, 100000652, 100000653, 100000654, 100000655, 100000656, 100000657, 100000658, 100000659, 100000660, 100000661, 100000662, 100000663, 100000664, 100000665, 100000666, 100000667, 100000668, 100000669, 100000670, 100000671, 100000672, 100000673, 100000674, 100000675, 100000676, 100000677, 100000678, 100000679, 100000680, 100000681, 100000682, 100000683, 100000684, 100000685, 100000686, 100000687, 100000688, 100000689, 100000690, 100000691, 100000692, 100000693, 100000694, 100000695, 100000696, 100000697, 100000698, 100000699, 100000700, 100000701, 100000702, 100000703, 100000704, 100000705, 100000706, 100000707, 100000708, 100000709, 100000710, 100000711, 100000712, 100000713, 100000714, 100000715, 100000716, 100000717, 100000718, 100000719, 100000720, 100000721, 100000722, 100000723, 100000724, 100000725, 100000726, 100000727, 100000728, 100000729, 100000730, 100000731, 100000732, 100000733, 100000734, 100000735, 100000736, 100000737, 100000738, 100000739, 100000740, 100000741, 100000742, 100000743, 100000744, 100000745, 100000746])
1721644489.185745 | ('SELECT FROM `products` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))', [1194, 1227, 1202, 1229, 1213, 1201, 1187, 1177, 1239, 1184, 1170, 1236, 1235, 1168, 1180, 1171, 1237, 1199, 1175, 1206, 1205, 1208, 1182, 1221, 1173, 1176, 1198, 1212, 1181, 1186, 1166, 1178, 1195, 1218, 1240, 1200, 1169, 1188, 1192, 1196, 1203, 1183, 1174, 1209, 1204, 1189, 1234, 1193, 1210, 1224, 1216, 1191, 1215, 1172, 1185, 1226, 1179, 1219, 1167, 1190, 1214, 1225, 1207, 1223, 1217, 1197, 1230, 1228, 1211, 1222])
1721644489.188555 | ('SELECT FROM `locations` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s))', [100000038, 100000037, 100000036, 100000040, 100000039])
1721644489.582603 | done

# reference
1721644666.490900 | ('SELECT FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE ((`t1`.`id` > %s) AND %s) ORDER BY `t1`.`id` LIMIT %s', [1, 0, 0, True, 100001])
1721644666.591653 | ('SELECT FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE ((`t1`.`id` < %s) AND %s) LIMIT %s OFFSET %s', [1, 0, 100000247, True, 1, 0])
1721644666.595491 | ('SELECT COUNT(1) FROM (SELECT 1 FROM `stock` AS `t1` INNER JOIN `locations` AS `t2` ON (((`t1`.`location_id` = `t2`.`id`) AND (`t2`.`camp_id` = %s)) AND ((`t1`.`deleted` = %s) OR (`t1`.`deleted` IS NULL))) WHERE %s) AS `_wrapped`', [1, 0, True])
1721644666.861970 | ('SELECT FROM `sizes` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))', [71, 68, 52, 35, 63, 5, 111, 3, 136, 118, 2, 1, 44, 97, 125, 109, 139, 4, 60, 124, 137, 108, 53, 47, 110, 138, 14, 135, 69, 117, 67, 45, 20, 51, 132, 32, 29, 114, 116, 59, 112, 48, 113, 131, 115, 15, 21, 133, 57, 33, 31])
1721644666.881894 | ('SELECT FROM `tags_relations` AS `t1` INNER JOIN `tags` AS `t2` ON ((((`t1`.`tag_id` = `t2`.`id`) AND (`t1`.`object_type` = %s)) AND (`t1`.`object_id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))) AND (`t2`.`camp_id` IN (%s)))', ['Stock', 100000247, 100000248, 100000249, 100000250, 100000251, 100000252, 100000253, 100000254, 100000255, 100000256, 100000257, 100000258, 100000259, 100000260, 100000261, 100000262, 100000263, 100000264, 100000265, 100000266, 100000267, 100000268, 100000269, 100000271, 100000272, 100000273, 100000274, 100000275, 100000276, 100000277, 100000278, 100000279, 100000280, 100000281, 100000282, 100000283, 100000284, 100000285, 100000286, 100000287, 100000288, 100000289, 100000290, 100000291, 100000292, 100000293, 100000294, 100000295, 100000296, 100000297, 100000298, 100000299, 100000300, 100000301, 100000302, 100000303, 100000304, 100000305, 100000306, 100000307, 100000308, 100000309, 100000310, 100000311, 100000312, 100000313, 100000314, 100000315, 100000316, 100000317, 100000318, 100000319, 100000320, 100000321, 100000322, 100000323, 100000324, 100000325, 100000326, 100000327, 100000328, 100000329, 100000330, 100000331, 100000332, 100000333, 100000334, 100000336, 100000337, 100000338, 100000339, 100000340, 100000341, 100000342, 100000343, 100000344, 100000345, 100000346, 100000347, 100000348, 100000349, 100000350, 100000351, 100000352, 100000353, 100000354, 100000355, 100000356, 100000357, 100000358, 100000359, 100000360, 100000361, 100000362, 100000363, 100000364, 100000365, 100000366, 100000367, 100000368, 100000369, 100000370, 100000371, 100000372, 100000373, 100000374, 100000376, 100000377, 100000378, 100000379, 100000380, 100000381, 100000382, 100000383, 100000384, 100000385, 100000386, 100000387, 100000388, 100000389, 100000390, 100000391, 100000392, 100000393, 100000394, 100000395, 100000396, 100000397, 100000398, 100000399, 100000400, 100000401, 100000402, 100000403, 100000404, 100000405, 100000406, 100000407, 100000408, 100000409, 100000410, 100000411, 100000412, 100000413, 100000415, 100000416, 100000417, 100000418, 100000419, 100000420, 100000421, 100000422, 100000423, 100000424, 100000425, 100000426, 100000427, 100000428, 100000429, 100000430, 100000431, 100000432, 100000433, 100000434, 100000435, 100000436, 100000437, 100000438, 100000439, 100000440, 100000441, 100000442, 100000443, 100000444, 100000445, 100000446, 100000447, 100000448, 100000449, 100000450, 100000451, 100000452, 100000453, 100000454, 100000455, 100000456, 100000457, 100000458, 100000459, 100000460, 100000461, 100000462, 100000463, 100000464, 100000465, 100000466, 100000467, 100000468, 100000469, 100000470, 100000471, 100000472, 100000473, 100000474, 100000475, 100000476, 100000477, 100000478, 100000479, 100000481, 100000482, 100000483, 100000484, 100000485, 100000486, 100000487, 100000488, 100000489, 100000490, 100000491, 100000492, 100000493, 100000494, 100000495, 100000496, 100000497, 100000498, 100000499, 100000500, 100000501, 100000502, 100000503, 100000504, 100000505, 100000506, 100000507, 100000508, 100000509, 100000510, 100000511, 100000512, 100000513, 100000514, 100000515, 100000516, 100000517, 100000518, 100000519, 100000520, 100000521, 100000522, 100000523, 100000524, 100000525, 100000526, 100000527, 100000528, 100000529, 100000530, 100000531, 100000532, 100000533, 100000534, 100000535, 100000536, 100000537, 100000538, 100000539, 100000540, 100000541, 100000542, 100000543, 100000544, 100000545, 100000546, 100000547, 100000548, 100000549, 100000550, 100000551, 100000552, 100000553, 100000554, 100000555, 100000556, 100000557, 100000558, 100000559, 100000560, 100000561, 100000562, 100000563, 100000564, 100000565, 100000566, 100000567, 100000568, 100000569, 100000570, 100000571, 100000572, 100000573, 100000574, 100000575, 100000576, 100000577, 100000578, 100000579, 100000580, 100000581, 100000582, 100000583, 100000584, 100000585, 100000586, 100000587, 100000588, 100000589, 100000590, 100000591, 100000592, 100000593, 100000594, 100000595, 100000596, 100000597, 100000598, 100000599, 100000600, 100000601, 100000602, 100000603, 100000604, 100000605, 100000606, 100000607, 100000608, 100000609, 100000610, 100000611, 100000612, 100000613, 100000614, 100000615, 100000616, 100000617, 100000618, 100000619, 100000620, 100000621, 100000622, 100000623, 100000624, 100000625, 100000626, 100000627, 100000628, 100000629, 100000630, 100000631, 100000632, 100000633, 100000634, 100000635, 100000636, 100000638, 100000639, 100000640, 100000641, 100000642, 100000643, 100000644, 100000645, 100000646, 100000647, 100000648, 100000649, 100000650, 100000651, 100000652, 100000653, 100000654, 100000655, 100000656, 100000657, 100000658, 100000659, 100000660, 100000661, 100000662, 100000663, 100000664, 100000665, 100000666, 100000667, 100000668, 100000669, 100000670, 100000671, 100000672, 100000673, 100000674, 100000675, 100000676, 100000677, 100000678, 100000679, 100000680, 100000681, 100000682, 100000683, 100000684, 100000685, 100000686, 100000687, 100000688, 100000689, 100000690, 100000691, 100000692, 100000693, 100000694, 100000695, 100000696, 100000697, 100000698, 100000699, 100000700, 100000701, 100000702, 100000703, 100000704, 100000705, 100000706, 100000707, 100000708, 100000709, 100000710, 100000711, 100000712, 100000713, 100000714, 100000715, 100000716, 100000717, 100000718, 100000719, 100000720, 100000721, 100000722, 100000723, 100000724, 100000725, 100000726, 100000727, 100000728, 100000729, 100000730, 100000731, 100000732, 100000733, 100000734, 100000735, 100000736, 100000737, 100000738, 100000739, 100000740, 100000741, 100000742, 100000743, 100000744, 100000745, 100000746, 1])
1721644666.978788 | ('SELECT FROM `shipment_detail` AS `t1` WHERE ((((`t1`.`box_id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)) AND (`t1`.`removed_on` IS NULL)) AND (`t1`.`lost_on` IS NULL)) AND (`t1`.`received_on` IS NULL))', [100000247, 100000248, 100000249, 100000250, 100000251, 100000252, 100000253, 100000254, 100000255, 100000256, 100000257, 100000258, 100000259, 100000260, 100000261, 100000262, 100000263, 100000264, 100000265, 100000266, 100000267, 100000268, 100000269, 100000271, 100000272, 100000273, 100000274, 100000275, 100000276, 100000277, 100000278, 100000279, 100000280, 100000281, 100000282, 100000283, 100000284, 100000285, 100000286, 100000287, 100000288, 100000289, 100000290, 100000291, 100000292, 100000293, 100000294, 100000295, 100000296, 100000297, 100000298, 100000299, 100000300, 100000301, 100000302, 100000303, 100000304, 100000305, 100000306, 100000307, 100000308, 100000309, 100000310, 100000311, 100000312, 100000313, 100000314, 100000315, 100000316, 100000317, 100000318, 100000319, 100000320, 100000321, 100000322, 100000323, 100000324, 100000325, 100000326, 100000327, 100000328, 100000329, 100000330, 100000331, 100000332, 100000333, 100000334, 100000336, 100000337, 100000338, 100000339, 100000340, 100000341, 100000342, 100000343, 100000344, 100000345, 100000346, 100000347, 100000348, 100000349, 100000350, 100000351, 100000352, 100000353, 100000354, 100000355, 100000356, 100000357, 100000358, 100000359, 100000360, 100000361, 100000362, 100000363, 100000364, 100000365, 100000366, 100000367, 100000368, 100000369, 100000370, 100000371, 100000372, 100000373, 100000374, 100000376, 100000377, 100000378, 100000379, 100000380, 100000381, 100000382, 100000383, 100000384, 100000385, 100000386, 100000387, 100000388, 100000389, 100000390, 100000391, 100000392, 100000393, 100000394, 100000395, 100000396, 100000397, 100000398, 100000399, 100000400, 100000401, 100000402, 100000403, 100000404, 100000405, 100000406, 100000407, 100000408, 100000409, 100000410, 100000411, 100000412, 100000413, 100000415, 100000416, 100000417, 100000418, 100000419, 100000420, 100000421, 100000422, 100000423, 100000424, 100000425, 100000426, 100000427, 100000428, 100000429, 100000430, 100000431, 100000432, 100000433, 100000434, 100000435, 100000436, 100000437, 100000438, 100000439, 100000440, 100000441, 100000442, 100000443, 100000444, 100000445, 100000446, 100000447, 100000448, 100000449, 100000450, 100000451, 100000452, 100000453, 100000454, 100000455, 100000456, 100000457, 100000458, 100000459, 100000460, 100000461, 100000462, 100000463, 100000464, 100000465, 100000466, 100000467, 100000468, 100000469, 100000470, 100000471, 100000472, 100000473, 100000474, 100000475, 100000476, 100000477, 100000478, 100000479, 100000481, 100000482, 100000483, 100000484, 100000485, 100000486, 100000487, 100000488, 100000489, 100000490, 100000491, 100000492, 100000493, 100000494, 100000495, 100000496, 100000497, 100000498, 100000499, 100000500, 100000501, 100000502, 100000503, 100000504, 100000505, 100000506, 100000507, 100000508, 100000509, 100000510, 100000511, 100000512, 100000513, 100000514, 100000515, 100000516, 100000517, 100000518, 100000519, 100000520, 100000521, 100000522, 100000523, 100000524, 100000525, 100000526, 100000527, 100000528, 100000529, 100000530, 100000531, 100000532, 100000533, 100000534, 100000535, 100000536, 100000537, 100000538, 100000539, 100000540, 100000541, 100000542, 100000543, 100000544, 100000545, 100000546, 100000547, 100000548, 100000549, 100000550, 100000551, 100000552, 100000553, 100000554, 100000555, 100000556, 100000557, 100000558, 100000559, 100000560, 100000561, 100000562, 100000563, 100000564, 100000565, 100000566, 100000567, 100000568, 100000569, 100000570, 100000571, 100000572, 100000573, 100000574, 100000575, 100000576, 100000577, 100000578, 100000579, 100000580, 100000581, 100000582, 100000583, 100000584, 100000585, 100000586, 100000587, 100000588, 100000589, 100000590, 100000591, 100000592, 100000593, 100000594, 100000595, 100000596, 100000597, 100000598, 100000599, 100000600, 100000601, 100000602, 100000603, 100000604, 100000605, 100000606, 100000607, 100000608, 100000609, 100000610, 100000611, 100000612, 100000613, 100000614, 100000615, 100000616, 100000617, 100000618, 100000619, 100000620, 100000621, 100000622, 100000623, 100000624, 100000625, 100000626, 100000627, 100000628, 100000629, 100000630, 100000631, 100000632, 100000633, 100000634, 100000635, 100000636, 100000638, 100000639, 100000640, 100000641, 100000642, 100000643, 100000644, 100000645, 100000646, 100000647, 100000648, 100000649, 100000650, 100000651, 100000652, 100000653, 100000654, 100000655, 100000656, 100000657, 100000658, 100000659, 100000660, 100000661, 100000662, 100000663, 100000664, 100000665, 100000666, 100000667, 100000668, 100000669, 100000670, 100000671, 100000672, 100000673, 100000674, 100000675, 100000676, 100000677, 100000678, 100000679, 100000680, 100000681, 100000682, 100000683, 100000684, 100000685, 100000686, 100000687, 100000688, 100000689, 100000690, 100000691, 100000692, 100000693, 100000694, 100000695, 100000696, 100000697, 100000698, 100000699, 100000700, 100000701, 100000702, 100000703, 100000704, 100000705, 100000706, 100000707, 100000708, 100000709, 100000710, 100000711, 100000712, 100000713, 100000714, 100000715, 100000716, 100000717, 100000718, 100000719, 100000720, 100000721, 100000722, 100000723, 100000724, 100000725, 100000726, 100000727, 100000728, 100000729, 100000730, 100000731, 100000732, 100000733, 100000734, 100000735, 100000736, 100000737, 100000738, 100000739, 100000740, 100000741, 100000742, 100000743, 100000744, 100000745, 100000746])
1721644667.176231 | ('SELECT FROM `products` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s))', [1194, 1227, 1202, 1229, 1213, 1201, 1187, 1177, 1239, 1184, 1170, 1236, 1235, 1168, 1180, 1171, 1237, 1199, 1175, 1206, 1205, 1208, 1182, 1221, 1173, 1176, 1198, 1212, 1181, 1186, 1166, 1178, 1195, 1218, 1240, 1200, 1169, 1188, 1192, 1196, 1203, 1183, 1174, 1209, 1204, 1189, 1234, 1193, 1210, 1224, 1216, 1191, 1215, 1172, 1185, 1226, 1179, 1219, 1167, 1190, 1214, 1225, 1207, 1223, 1217, 1197, 1230, 1228, 1211, 1222])
1721644667.195202 | ('SELECT FROM `locations` AS `t1` WHERE (`t1`.`id` IN (%s, %s, %s, %s, %s))', [100000038, 100000037, 100000036, 100000040, 100000039])
1721644667.357533 | done

@pylipp pylipp force-pushed the poc-batch-loaders-with-sync-wrapper branch from 26bc28c to da59dfb Compare March 11, 2024 11:27
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.70%. Comparing base (9c2f1ee) to head (2fad91a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1222   +/-   ##
=======================================
  Coverage   84.69%   84.70%           
=======================================
  Files         240      240           
  Lines       15138    15157   +19     
  Branches     1651     1655    +4     
=======================================
+ Hits        12821    12838   +17     
- Misses       2278     2279    +1     
- Partials       39       40    +1     
Flag Coverage Δ
backend 99.08% <ø> (-0.05%) ⬇️
frontend 78.22% <ø> (ø)
sharedComponents 78.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pylipp pylipp force-pushed the poc-batch-loaders-with-sync-wrapper branch from da59dfb to a4266af Compare July 22, 2024 10:48
@pylipp pylipp force-pushed the poc-batch-loaders-with-sync-wrapper branch from a4266af to 2fad91a Compare November 13, 2024 15:47
@pylipp pylipp force-pushed the poc-batch-loaders-with-sync-wrapper branch from 2fad91a to 9f6a8e6 Compare November 13, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant