async def METHOD_NAME(request):
    worlds = []
    updates = set()
    queries = request.args.get('queries', 1)
    async with connection_pool.acquire() as connection:
        statement = await connection.prepare(READ_ROW_SQL_TO_UPDATE)
        for row_id in sample(range(1, 10000), get_num_queries(queries)):
            record = await statement.fetchrow(row_id)
            world = dict(
                id=record['id'], randomNumber=record['randomnumber']
            )
            world['randomNumber'] = randint(1, 10000)
            worlds.append(world)
            updates.add((world['id'], world['randomNumber']))
        await connection.executemany(WRITE_ROW_SQL, updates)
    return response.json(worlds, headers=get_headers())