Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Desktop app deployment on lan

  1. #1

    Desktop app deployment on lan

    hi lianja experts,

    Is there any other way of deploying desktop app on LAN aside from the method discribed in lianja wiki (http://www.lianja.com/doc/index.php/...nd_Web_Clients) ?

    The client PC connection to the database (DBF) is very slow. Lianja app center doesn't even responds sometime.

    thanks.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    The last time you asked about this I told you your LAN looked slow. Have you determined why even a file copy is slow yet?

    There are some attributes you can set to disable the slider in the navigation bar. I'm not on my computer at the moment but I believe it's in the app settings.

    When you say the app center becomes unresponsive can you better describe what you are doing when that occurs and how much data you have.

    Also, learn to use the app inspector in runtime app view it logs a lot of useful info in the events tab.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    hi barry,

    Yes I followed your instructions last time and if it's really a network problem then why it's only slow the first time you search for a record in database. For second time and so on it's quite fast.

    The app center unresponsive when I update and delete record. Note that I used SQL command to do that.

    OK. I really have to learn to use the inspector. thanks

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    If you are using SQL to perform UPDATE and DELETE operations you need to make sure that the WHERE condition can be optimized and is not doing a sequential scan of the table.

    Learn how to use the EXPLAIN command with SELECT and you can see if the optimizer can use any indexes. If it can't then you need to create indexes on the primary key column at least.

    If you know the record number the optimizer will perform a singleton update/delete operation when referenced using the rowid system column.

    It sounds like you are doing a sequential scan with no index optimization taking place.

    EXPLAIN is your friend, get to know how to use it.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Hi sir barry,

    My tables where already indexed and upon using the EXPLAIN command my query is optimized. But despite of that my problem is not solved yet.

    Nothing is improved. So the only thing we've not yet tried is to change/upgrade the switch.

    There current switch speed is 10/100Mbps.
    Last edited by abdulmojeb; 2015-12-06 at 20:14.

  6. #6
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    How many records do you read?
    If you read many records, with a 10 Mb/s lan, it is slow any system ..
    Try to write a query to read only a few records (50 or 100).

    Ciao

  7. #7
    hi,

    We've already upgraded the network switch to a gigabit switch and upon using the LAN_Speedtest we have 211Mbps writing data and 710Mbps reading data from the server PC to the client PC. I think that's fast enough right?

    In regards to the system, updating of records took 4min to update a record. Note that table already indexed and where condition is optimized.

    Any idea why updating of record is very slow?

    thanks.

  8. #8
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Copy your database onto your local drive and perform the update then compare the times.

    If you have an active subscription and you are a licensed developer then zip up the app and its database, then attach it to a ticket with steps to reproduce this behavior and we will investigate this and advise what you need to do.
    Last edited by barrymavin; 2015-12-09 at 01:21.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  9. #9
    If the database is on the local drive the system responds so fast. It's just a matter of milliseconds upon updating a record.

    I just have a question on indexing. I had created the index through this code

    create index policy in artrans (atco,attype,alltrim(atno),atcd)

    Upon running this code

    explain select * from artrans where atco='PF' and attype='CV' and alltrim(atno)='134066' and atcd='S'

    and I have this output

    Optimized WHERE condition for table 'artrans' using index tag 'POLICY'
    Table 'artrans' has 145149 records
    SEEK 'PFCV'
    SCAN WHILE ATCO+ATTYPE = 'PFCV'
    Total I/O read operations was 19131
    1 record selected in 72ms


    Does it mean that not all fields were optimized but only the first 2 fields?

    thanks barry

  10. #10
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Remove the alltrim.

    The SQL engine has SET STRCOMPARE ON by default so it works similar to MySQL and MSSQL and performs case insensitive string compares and will automatically pad out strings with spaces.

    Try that and see what the EXPLAIN command tells you.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us