I have a DB with 6000 entry’s one I create a dynamic page the editor moves in slow motion
About 5-9 seconds between each response to my mouse click’s
Hi Yossi,
Placing many elements inside a single page could cause performance issues.
To minimize the impact on performance, simply display less objects at a time and implement a pagination feature.
Hi Ido,
I only displaing one item at a time but it is still very slow. As soon as I connect the dataset I can’t edit the page. It happens only when I use a dynamic page
Hello again Yossi,
Please save and paste your editor url here and we’ll look into it further.
Hi Yossi,
Thank you for the reply.
We are investigating and will reply as soon as we have feedback.
Best regards,
Hello Yossi,
We deployed a few fixes that should help with your editor’s performance.
Can you please check and let us know?
Best regards,
Ido
I’m running into the same issue. It seems like I need to filter the dataset before it loads, but every time I try that it seems to break. I assume I haven’t implemented the filtering / pagination properly but would very much appreciate any pointers. Code is:
import wixData from “wix-data”;
$w.onReady(function () {
$w("#table1").columns = [{
id: "col1",
dataPath: "title",
label: "Bulletins",
type: "string",
visible: true,
linkPath: "pdf"
}, {
id: "col2",
dataPath: "image",
label: "",
type: "image",
visible: true,
linkPath: "pdf"
}];
$w("#table1").pagination = {
"type": "pagination",
"rowsPerPage": 10
};
$w(() => {
$w("TextInput").onKeyPress((event) => {
if (event.key === "Enter") {
button1_click(event, $w);
}
});
});
});
export function button1_click($w) {
console.log(loading
);
wixData.query(“#dynamicDataset”)
.descending(“title”)
.limit(300)
.contains(‘full_text’, $w(‘#input1’).value)
.find()
.then(res => {
$w(‘#table1’).rows = res.items;
});
$w(“#table1”).pagination = {
“type”: “pagination”,
“rowsPerPage”: 10
};
console.log(done loading
);
}
Hi Brad,
Try adding your code inside $w(“#myDataset”).onReady( () => { //…}
See more about dataset.onReady() here
Should I do the $w(“#myDataset”).onReady( () => { //…} within the top level onReady? I’ve tried both and neither seems to be very fast.
I am having the same issue. I made a database for every zip code in US, each with a dynamic url/landing page. For awhile it worked fine, 3-4 days ago it started moving really, really slow in the editor.
See my site: movinghelpcenter.com
Here is adynamic pages to get an idea of the layout:
Moving Help in Houston, TX 77077 - MovingHelpCenter.com