Hey All -
First off - really enjoying bubble so far! My background is more on the backend of things - Familiar with SQL/VB/JS/Scripting languages like python/AHK. But putting a full stack together with a front end quickly is just…too much work sometimes! Bubble seems like a good in between to tie alot of things together.
Im using bubble to pull in data from a MySQL DB hosted on AWS(This is working fine), my question is related to filtering the data after its brought into the repeating group for display.
I think its working fine, but I’m not sure if using the :filtered psuedo element each time its being applied so that the query needs to execute again? Or does bubble apply the filter to the list that has already been generated from the sql data?
I hope that makes sense?
My goal is to be able to query my DB like:
“SELECT * FROM Contacts WHERE FirstLastName LIKE ? LIMIT 200”
Populate a Repeating group from the above - and then based on dropdowns/input fields etc…further filter down the data, without re-querying the DB each time.
*Side Note - I was able to build a pagination feature in the case that i have more than 25 results(In order to keep queries fast) - which I was pretty satisfied about without using procedures or anything crazy. just some SQL, and auto increment ID’s per each row.
SELECT * FROM (SELECT *
FROM Companies
WHERE com LIKE ? AND
CASE
WHEN ?='true' THEN id > ?
else id < ?
END
ORDER BY
CASE WHEN ? ='true' THEN id END ASC,
CASE WHEN ? ='false' THEN id END DESC
LIMIT 25) As AliasedSearch ORDER BY id ASC
Then used States to track the :first-item & :last-item repeat groups id’s to pass back into the next query!
Thanks all!