Giter Club home page Giter Club logo

ws_ora's Introduction

ws_ora

web service with cache for oracle db

ws_ora's People

Contributors

alexgruperm avatar

Watchers

James Cloos avatar  avatar

ws_ora's Issues

rewrite WsStat case class

We need a constructor with parameters LONG, CNT.
to eliminate code like this

 WsStat(
            currTs, 0,
            new FixedList[CacheGetElm](cfg.getcntHistoryDeep),
            new FixedList[CacheCleanElm](cfg.getcntHistoryDeep),
            new FixedList[ConnStat](cfg.getcntHistoryDeep)
          )

in def refCache

Change output data json format

Change output json format from "by cells" into array of array

 "rows" : [
          [
            {
              "name" : "ID",
              "value" : "2"
            },
            {
              "name" : "PARENT_ID",
              "value" : "null"
            },
            {
              "name" : "NAME",
              "value" : "Контрактация"
            },
            {
              "name" : "IS_EXISTS_META_PROPS",
              "value" : "0"
            }
          ],

to

    [
        [
          {"ID" : 5},
          {"PARENT_ID" : null},
          {"NAME" : "Показатели"},
          {"IS_EXISTS_META_PROPS" : 1}
        ],
        [
          {"ID" : 6},
          {"PARENT_ID" : 5},
          {"NAME" : "Показатели 2"},
          {"IS_EXISTS_META_PROPS" : 0}
        ]
    ]

Change interpretation of parameter reftables

Now in "reftables" parameter we set the list of tables on which the cache item depends, for example

                                 "reftables" : [
                                                "admin.t_roles",
                                                "admin.t_users_roles",
                                                "data.table1",
                                                "storage.table2"
                                                ]

We need to use masks:

  1. depends on all tables in any schema.
"reftables" : [
                      "*.*"
                    ]
  1. depends on some tables and all table in schema admin.
                                 "reftables" : [
                                                "admin.*",
                                                "data.table1",
                                                "storage.table2"
                                                ]

Slow simple select

Simple query (four numeric columns)

select * from XXXXX  where rownum <= 8000

takes about 27 seconds.

improvement run method

In file Main.scala we need rewrite the run method and eliminate using
Runtime.global.unsafeRun

Bug with column datatypes

Service return for PKG_WIDGET.GET_DASHBOARD

"is_widget" => 1.0
"icon_add_basic_set" => 1.0

we need exactly
"is_widget" => "1"
"icon_add_basic_set" => "1"

Add the mode parameter convType

We need to use the mode parameter convType str(default), num in function getColumnWsDatatype
to fetch all columns from DataSet with getString or getXXX -depends on column type.

Add wildcard to ref tables names

For example, instead of

"reftables" => ["msk_arm_lead.widget_meta_property",
                         "msk_arm_lead.widget_type"]  

we can use

"reftables" => ["msk_arm_lead.widget_*"]  

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.