Hello,
I have a repeater that populates a page from a database collection. (Big collection).
I need to display on this repeater information from a different collection.
I know I can make a query in the code in the repeater_itemReady function to bring this additional information. But I am concerned with the performance since it’s a relatively big collection and most items will NOT have this additional information in the additional collection.
So, my question is.
Once the repeater is completely loaded… perform the query on the additional collection and add the information on specific elements of the repeater.
Is this possible?
Any idea anyone?
Hi Anat!
What I would recommend to do is to divide the result items array to smaller parts (kinda like Pagination) and load certain number of them each time.
This way the loading time would be more reasonable (every time loads only the new part).
Doron.
Hi Doron, Thank you for your response. I am using a pagination. But still, out of the let’s say 50 items i bring each time, maybe one will have this extra data, so i do not want to perform a query on the 50…
i would like to add elements/data/symbol to specific items on a repeater… is it possible?
anyone? is it possible to add elements/data/symbol to specific items on a repeater… is it possible?
Hi Anat,
Have you considered to add those specific data/symbols as a reference field to the collection?
This way you don’t need to manage two DBs at the same time.
Roi.
Hi Roi, my second collection references the first one, it’s like a one to many collection.
The rows in the first collection are created by my users and do not include the additional information. Those rows are displayed in my repeater. Only afterwards, additional data is entered and should be displayed only to specific people.
Any recommendations on repeaters with additional data performance tips