Nick Richter

Results 6 comments of Nick Richter

Hi, I also came across this or a similar error, see the picture. It does not really bother me as Prisma still runs but when I want to git commit/push,...

![MigrationDuration2](https://user-images.githubusercontent.com/22129925/127131077-74e07084-e250-499b-8894-16aca446a25e.png) This graph is from migrating a 30 million row table with a batch size of 100.000. As you can see it will increasingly take a shorter amount of time.

![MigrationDuration3](https://user-images.githubusercontent.com/22129925/127131572-3ca84817-a285-46c3-8ba7-404b318a3556.png) This graph is from the same table as the first post but with a batch size of 100.000. I think in the end a shortage of RAM caused the...

I think I know the problem, I am creating an index on a varchar column on the tables with increasing times, while just adding a column to the table with...

![image](https://user-images.githubusercontent.com/22129925/127292303-6215765b-cfe5-4418-96cb-ac748728ecbb.png) I found the problem to be in the composite primary key constraint. This graph has a composite primary key with 2 columns. In the reversed run, I changed the...

I fixed this issue by adding as_dict() to base_class.py in db: ``` @as_declarative() class Base: id: Any __name__: str # Generate __tablename__ automatically @declared_attr def __tablename__(cls) -> str: return cls.__name__.lower()...