• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

strange behaviour with autocomplete, concat, separators and loading time

mirceat

Member
Hello,

I have a list with many rows, in which i want to search after company name, SSN or phone number. There are over 2 mil rows so i'm trying to load the data fast as i can.

I've created a dbjoin element rendered as autocomplete. Few things here:

1. Using company as label rise the load time to over 9 seconds. Tried with and without indexing the column (even worse without index)

2. Using the ID as label the load time drop to 3.42 seconds. Good enough.

But users will search after company name or SSN or owner phone. So i tried to concat the label:

- using COMPANIE, '', SSN,'', TELEFON (no space in separators or no separators at all): DOMContentLoaded: 11,54 s

- using COMPANIE, ' ', SSN,' ', TELEFON (spaces between separators), DOMContentLoaded: 3,97 s.

That's good, but now i have two empty spaces left and the autocomplete stops working untill i remove those empty spaces from field. The "trim empty concat" option doesn't help here..

So..how can i concat the label and still having a good load time?

Thank you
 
I'm talking about the load time for the whole page. There are only 8 field elements + this dbjoin in form and the load time increases only if i enable the dbjoin element.
 
That's weird, as the autocomplete shouldn't do an unconstrained select of the joined table. On page load, it should either just select the existing value/label (so a single row), or none (if no selection). Does it do that on new and edit?

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top