Morten Bo Rønsholdt
05/20/2019, 11:37 AMquery Test {
business(where: { id: "93f13" }) {
publicationBatches {
publications(first: 1) {
id
localeCode
paged {
id
pages {
pageNumber
image {
url(width: 700)
}
}
}
}
}
}
}
what essentially happens is:
1) fetch business
2) fetch publication batches (there's 3)
3) fetch publications for publication batches (there's 1 for each)
4) fetch pages for each publication (there's around 100 for each)
5) fetch image for each page
that's at least 600 objects that need to be fetched and it takes 5-10s with the above query. I was under the impression that Prisma had an efficient dataloader but I can't launch with these response times. what can I do to improve loading times?divyendu
05/20/2019, 11:46 AMMorten Bo Rønsholdt
05/20/2019, 11:48 AMMorten Bo Rønsholdt
05/20/2019, 11:48 AMMorten Bo Rønsholdt
05/20/2019, 11:54 AMdivyendu
05/20/2019, 12:01 PMMorten Bo Rønsholdt
05/20/2019, 12:02 PMMorten Bo Rønsholdt
05/20/2019, 12:03 PMdivyendu
05/20/2019, 12:24 PMMorten Bo Rønsholdt
05/20/2019, 12:30 PMdivyendu
05/20/2019, 12:34 PMMorten Bo Rønsholdt
05/20/2019, 12:36 PMprisma deploy
after making a small changedivyendu
05/20/2019, 12:50 PMMorten Bo Rønsholdt
05/20/2019, 12:53 PMMorten Bo Rønsholdt
05/20/2019, 2:46 PMMorten Bo Rønsholdt
05/20/2019, 2:49 PM127.0.0.1 localunixsocket.local
to /etc/hostsdivyendu
05/20/2019, 2:49 PMMorten Bo Rønsholdt
05/20/2019, 2:49 PM