Currently we store the customers logos in the Servoy media, which has the disadvantage that we need to add the logos of new customers to the solution media and then create a new version of the solution.
Now two other options we see are
a) store the needed PNGs in a folder below the Servoy application_server folder, like D:\Servoy7\application_server\server\webapps\ROOT\images
b) store the PNGs in an own database table like images
Which storage option of those three solutions is the best, when you want that calculation to run as fast as possible?
Or said in another way, what PNG will Servoy retrieve fastest?
- Code: Select all
function clcs_ps_is_our_employee()
{
if (ps_is_our_employee) {
if (ps_was_our_employee) {
return '<html> <img src="media:///logos/' + _to_tenants$currenttenantid.tn_icon_small_gray + '"> </html>';
}
else {
return '<html> <img src="media:///logos/' + _to_tenants$currenttenantid.tn_icon_small + '"> </html>';
}
}
else if (ps_is_external_time_booker) {
return '<html> <img src="media:///clock-o_808080_16.png"> </html>';
}
else {
return null;
}
}