Hi there,
i was wondering if there is a way to create a DB from stratch using code .
What i want to do is implement the ‘create new photo album’ for the users in my social network. I want them to select photos and upload them, and the code creates a new DB with the album title and uploads the images in a media gallery field.
Any ideas?
Thank you in advance!
Alex
As far as i know it is not possible to create a new DB using CODE in Velo.
Your solution would be to generate an own UPLOAD-System which would generate different folders and upload your Photos directly into your File-Manager. This could be a way how to solve it.
Further you could use an UNIVERSAL-DB for all the photos and store them all in just one DB. That means, all users uploads into just one BIG-DB. Then you create PROFILE-DYNAMIC-PAGES and generate DB-Permissions, so that every-User just can open, edit, or delete his own uploaded DATA in the UNI-DB.
Of course it should also be possible to connect a REPEATER or a Media-Gallary to make a “show-room”.
But if you are not a coder, you will have a big adventure to fullfill your wished function.
Thank you, yes i guess i will follow the ‘universal-db’ idea, i had tried once but it became too slow as the number of users / images grew.
@ademontis
How fast or slow your page is at the end depends on many factors.
- Structure and functionality of CODE
- How much items are loading at once.
- How many elements you have on your page.
- How optimized are added elements. For example you should always first compress Images or Photos (optimization for webpage), before adding them onto your site.
The bigger your inserted data, the slower gets your site.
The same for REPEATERS.
It is not rekommended to load too much items at once. Instead you can do it as an infinite LOAD-MORE function, which loads automaticaly more items on scrolling action.
Just to mention some of techniques how to speed up your page.