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

Missing Index on parentFk #1298

Open
4DFuchs opened this issue Mar 24, 2022 · 1 comment
Open

Missing Index on parentFk #1298

4DFuchs opened this issue Mar 24, 2022 · 1 comment
Labels
contributions welcome asking for contribution (time and money sponsor) enhancement enhancement or improvement

Comments

@4DFuchs
Copy link

4DFuchs commented Mar 24, 2022

Hi,
I am generating the DDL with the DDL-Creator from Deegree-Project like this

final MappedAppSchema mappedSchema = getMappedSchema(new PostGISDialect("2.0.0"));

final String[] createStmts = DDLCreator.newInstance(mappedSchema, getPostGISDialect()).getDDL();

But I am confused, because the Indices for ForeignKeys are missing. This bug has big performance issue when deleting or selecting rows in the database.

In my opinion the index should be generated after the call of createJoinedTable.

@tfr42 tfr42 added enhancement enhancement or improvement contributions welcome asking for contribution (time and money sponsor) labels Mar 31, 2022
@tfr42
Copy link
Member

tfr42 commented Mar 31, 2022

The deegree CLI and its underlying API provides functions to generate SQL DDL scripts based on GML application schemas. Currently there is no function or option available to enable the creation of database indexes by default. Users are advised to manually add indexes appropriate to the usage scenario.

You may consider to post your feedback also to issue #977 which is about performance improvements for SQLFeatureStore based WMS.

We appreciate any contribution to the deegree code base which adds this kind functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome asking for contribution (time and money sponsor) enhancement enhancement or improvement
Projects
None yet
Development

No branches or pull requests

2 participants