What are best practices for persisting positions when using drag & drop?

stenpittet

Sten

Posted on October 3, 2018

What are best practices for persisting positions when using drag & drop?

We're in the process of implementing drag & drop in our platform to reorder elements and while the UX is straightforward to manage I've seen a lot of options for persisting the order in DB.

I'd love to get some wisdom from the community and see what the best practices are. I've looked around on StackOverflow and found this article that has an interesting option to limit queries.

So, in your experience, what's the best approach for it?


Edit: for those stumbling on the post look at Guillaume's comment for neat SQL statements.

💖 💪 🙅 🚩
stenpittet
Sten

Posted on October 3, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related