Relation manager ignored global scope
I have a model called
I have excluded the column using a global scope which now only returns the fields I need and this makes all the tables work fast.
But I have added some relationships to the model and added then included them using
Using debugbar I can see that the following query is called twice.
If I remove the relationships everything works ok.
gaspipesurvey with a large GeoJson object column in the database. (up to 5mb).I have excluded the column using a global scope which now only returns the fields I need and this makes all the tables work fast.
But I have added some relationships to the model and added then included them using
getRelations() after adding each relationship each tab takes a long time to load when the GeoJson is large.Using debugbar I can see that the following query is called twice.
select * from gas_pipe_surveys where gas_pipe_surveys.id = 375 limit 1- I wouldn't expect to see
select *on this becuae of the global scope. - I'm not sure why it's called twice.
If I remove the relationships everything works ok.