« first day (2061 days earlier)      last day (597 days later) » 

MAX
10:31 AM
Hi,
Is it possible to join tables in 2 different db's
DB1 is mysql & DB 2 is postgreSQL?
I have common tables in both the DB.
And both DB's are in the same system
@user6813858 , Create a List & then with in the loop you append the list
 
 
6 hours later…
4:20 PM
@MAX not across servers, no. You can join tables across schemas on the same database instance (with MySQL, at least) but not across database servers.
 
 
2 hours later…
5:57 PM
Hey guys, I needed some architecture help.
I'm making a webapp where the user can customize their page layout. For example add, remove and modify position of different HTML elements.
My question is how should I store these custom layouts of each user.
From what I've gathered, I could either store in a database, but that would make page loads slow cause I'll be storing it as a blob and querying might turn out to be expensive.
OR
I could store each user's HTML file and serve it to them when they request for it.
 
6:16 PM
@KsheetijSaini Why would loading the HTML from a file on disk be slower than from a blob?
I'd toss it in the database just so I wouldn't have to worry about storing data in multiple places
I wouldn't expect it to be any slower
 
Well from my research on stackoverflow, it was frowned upon. You may check out:
1. Dragon's comment - http://stackoverflow.com/questions/26206603/best-practise-store-custom-websites-layout-for-member-profiles-in-php-community#comment41096875_26206603
Also for storing in DB
2. http://stackoverflow.com/questions/29570136/storing-html-components-in-database
3. http://stackoverflow.com/questions/1827933/mysql-php-store-html-templates-within-the-a-database
 
 
2 hours later…
8:48 PM
I don't think Dragon knows what he's talking about
In that second one, the question is about HTML written by you the developer, not provided by the user
@KsheetijSaini I interpreted your statement to mean that the HTML was user-provided - are they just picking from themes that you created?
If so, then use whatever templating library you're already using and make these widgets regular components with their own templates, and use components based on the user's selected options
 

« first day (2061 days earlier)      last day (597 days later) »