memory efficient ddl