Jump to content

MikeMon

Members
  • Content Count

    147
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by MikeMon


  1. 18 minutes ago, Lars Fosdal said:

    It may be because the datasnap server tears down the connection when nobody is using it.

    It may be configurable.  What is the setting of Server.KeepAlive ?

    TDSRestConnection.Connection is Keep-Alive.

    But like I said earlier, when I have a connection to the database by another software, there is no speed issue on the client. That's the strange part.


  2. 2 minutes ago, mjustin said:

    Do you have a test system? If yes, can you reproduce the slowness there?

    And is it taking a constant amount of time to establish the first connection, ir is it varying?

    (I remember a similar issue some years ago which only occured in the production server, and was resolved by a new installation of the InterBase server)

    Yes. I checked on 2 different servers. On both servers, if another software is running that is connected to the same database, the Datasnap connections from clients are much faster. Very strange.


  3. I have a very strange situation. I have developed an online ordering app connecting to a Datasnap server. This is the strange part: purely by luck, I found out that when I have a database connection active (by another software) on the server where the datasnap server resides, the app runs very fast; when I don't it is way too slow(er). I use Interbase and Firedac. Does this make sense? Has anyone come across an issue like this? It's like when the database has no connections active, the first connection is taking way too long.


  4. Hi

     

    I have an issue with loading a local image in a local HTML file on iOS. On Android it loads correctly. 

    Here is the code I use to get the file including its path:

     

    FileName:= 'Image.jpg';
    FileName:= TPath.Combine(TPath.GetDocumentsPath, FileName);


    I checked and the file exists. The image in the local HTML file is assigned as:

     

    <img alt="Nov" src="file://the filename above">

     

    I also checked with starting the source with "file:///". It STILL doesn't work on iOS but does on Android.

     

    Any ideas?

×