-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Don't create a search/pulldata database when pulldata is used over an Entity List #6471
Comments
I'm thinking we should fix this by skipping the creation of the dynamic preload data DB if a form meets the follow two conditions:
The big change we'll need to make for that is to persist the "flag" that an instance (media file) is an entity list so that can be determined when parsing a form. There are a lot of other reasons that storing details about media files could be useful though, so I think that's a good change to make here. Very related to this is how we then deal with
@lognaturel what are your thoughts on this plan? I think it's good to have a long term plan so we know the context surrounding fixing this issue. |
The short-term plan sounds good and I agree that we will need to know whether a form attachment is an Entity List at a time other than download for other reasons, most notably for #6425. I think that issue is higher priority than this one so maybe it can drive out storing that state.
I think we already have this: |
Agreed!
Great point! I was forgetting that What are your thoughts on deprecating |
We discussed this, and there are few things that we'd need to support more generally before getting rid of
|
Following #6451,
pulldata
over an Entity List uses the local Entity List database. However, the corresponding search/pulldata database is still being created. This increases form open time for users and leads to side effects like #6461Currently
search()
does not use the Entity List database so knowing that a source CSV is for an Entity List is not a sufficient signal to skip search/pulldata database creation.We should fix this by skipping the creation of the dynamic preload data DB if a form meets the follow two conditions:
Notes
The big change we'll need to make for that is to persist the "flag" that an instance (media file) is an entity list so that can be determined when parsing a form. There are a lot of other reasons that storing details about media files could be useful though, so I think that's a good change to make here.
The text was updated successfully, but these errors were encountered: