Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
what is the best postgres DB connect unity?
Unity is known to be very vulnerable to security, so connecting a db directly with Unity was considered very unsafe, so unity -> php -> db
I am trying to make it like this. However, I found a problem with this method.
is that php security is as weak as Unity.
Do you know which method is the best way to connect postgresql to unity?
i know this question is subjective but
I don't know where to ask these things
Or can you teach me where to ask these questions?
Good security is not only a question of choosing certain software, it is mostly a question of design and architecture.
Make sure you are not vulnerable to SQL injection.
The king's way is to use prepared statements wherever possible. Also, never construct queries using string concatenation from user input.
Make sure that the database user does not have more permissions than required. In particular, never use a superuser.
If you are worried about eavesdroppers between the application and the database, use SSL encryption.
But security requires a holistic approach: you have to make sure that the operating system and the database are well protected and that your application is well written.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am starting my first PWA (in Ionic angular). Since I come from an Asp.Net MVC background, where SQL Database is used mainly, I find it hard to decide what is best for me to go with.
There are all these things to be considered with PWA, especially storing data in the device and then syncing with a db and so on. It seems that SQL databases will not do the work for PWA (or are not preferred to).
Everything is pointing towards noSql databases. Therefore I need some tips and personal opinions from experience about CouchDB vs MongoDB (since these are the two I see mostly being suggested and praised).
The focus should be on offline/online storing and syncing between them.
I don't know if I am using the right descriptions and terms but I hope someone will enlighten me and make it clearer what to choose. Other DB alternatives are welcome.
The app will be like a social app for outdoor activities. Users and authentication will be part of it.
As Flimzy points out, this is not the right place for opinions. To address part of your question, Both MongoDb and CouchDb are database servers which would not provide local storage (ie on device) for a PWA. There is a database for this called IndexedDb and this is widely supported by browsers including Chrome, Firefox and Safari.
IndexedDb does not provide a way (that I am aware) to sync with a database on the internet. However you can use PouchDb which is an interface to IndexedDb. PouchDb provides a facility to store information on the device in IndexedDb when there is no network connection and then sync with CouchDb when there is a connection.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Our current Development and Production systems are PHP v5.3.10/Ubuntu 12.04 environment. We Our new environment will be PHP Version 7.0.30/Ubuntu 16.04.
Is there a way to analyze our current PHP5.3 code and determine the scope of how much work would be needed once we port current code into our new PHP7.0 environment?
This will help give us a feel for how much work will be required to migrate from PHP5.3 to PHP7.0.
The performance is the big plus in PHP7, but the effort to migrate to it depends from your time/money and the traffic in the website, if it is heavy you should consider the migration as a real option.
For security reasons, maintenance, lots of important deprecated function, and the new cloud hosting services, I recommend to not use PHP5.3. Migrate to PHP5.6, can be a sooner solution for future problems. In the last days I have been experimenting hosting problems with mysql_connect(This extension was deprecated in PHP 5.5.0) function used in PHP5.3, and this is just an example
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I successfully integrate the postgres and eclipse but unable to test the database. I need to know where can i get help if any suggestions would be appreciate.By the way i am using java. Thanks in advance.
Selenium is not the right tool here, as it is a tool for automating testing of web front-ends. You cannot directly test your database using this tool.
You can test an application like phppgadmin, but it isn't clear that is what you want.
A better approach is just to write test cases through jUnit and jdbc, in my view. That gives you better control and testing than you can via a web front-end and it is easier to solve the question of whether you want transactions to rollback or not (selenium poses this problem since it is indirect and tests a web app that interacts with the db over a stateless connection).
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am sorry if this is not a constructive enough question.. Coming from the SQL world I'm just trying to wrap my head around this. After reading a lot about MongoDB, I've become very enthusiastic about it and consider using it for an upcoming application (in combination with Meteor).
However, I came across this blog post, which describes the troubles Diaspora ran into when using it and states "you should never use MongoDB". The examples she's giving sound pretty convincing.
Are these true problems with MongoDB, or were they using it wrong? Is this article now outdated and are there better ways for doing what they're doing (duplicate data for instance, like users being linked to each other, to posts and to comments, is a very common use case)?
Yes, there is a plenty of cases when mongodb not feet good, some of them are
When data perfectly described with 'table' metaphor (better using
SQL)
When you need ACID and transactions out of the box
When your workflow extremely oriented to write operation
When you need to generate complex cross-data reports
Data model have strongly relational view (a lot of connected
instances)
There is a lot of others, but this is just something which comes to my head fast.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What abilites have firebird to use it in highloaded projects?
Whats better PostgreSQL or FireBirdSQL?
Any one know big projects which work with Firebird database and developed over it?
Both Firebird and PostgreSQL are good choices. I think 'better' is highly subjective and not easy to answer for such a broad and unspecific question. The case-studies on firebirdsql.org lists some projects that might be of interest to you.
It is however important to keep in mind that performance in general depends largely on the way your system interacts with the database, transaction management (and transaction configuration), underlying server etc.
Full disclosure: I am a developer of the Firebird JDBC driver, so I may be biased :)