go to post Dmitry Maslennikov · Nov 22, 2022 set bufHex = "02010605166E2A0923100950205450524F424520303030323730" set buf = "" for i=1:2:$l(bufHex) set buf = buf _ $char($zhex($extract(bufHex, i, i+1))) write $sconvert(buf, "U2", /*big*/ 1, /*pos*/ 8) / 100
go to post Dmitry Maslennikov · Nov 22, 2022 I think more details are needed, looks like it is JDBC or ODBC connection, which one? Depending on a particular task, probably there are various other options to make it even faster.
go to post Dmitry Maslennikov · Nov 19, 2022 Have a look at sqlalchemy-iris, with it you can use pandas and access tables through SQL
go to post Dmitry Maslennikov · Nov 14, 2022 Implemented it this way, as a workaround. But not sure in it. def visit_delete(self, delete_stmt, **kw): if not delete_stmt._where_criteria and delete_stmt.table.foreign_keys: table = delete_stmt.table nocheck = False for fk in table.foreign_keys: nocheck = not fk.ondelete and fk.parent.table == table if not nocheck: break if nocheck is True: delete_stmt = delete_stmt.prefix_with('%NOCHECK', dialect='iris') text = super().visit_delete(delete_stmt, **kw) return text
go to post Dmitry Maslennikov · Nov 14, 2022 And looks like, I have no way to check if I could add %NOCHECK for a particular DELETE query. It may cause integrity issues, in case if it uses another table, not the same one.
go to post Dmitry Maslennikov · Nov 14, 2022 Yes, it will work, but it will just ignore the checks and will be an issue if I have where If I add %NOCHECK, it will delete these items, while it should fail DELETE %NOCHECK FROM nodes where name in ('n11', 'n12', 'n13');
go to post Dmitry Maslennikov · Nov 11, 2022 Nope, it's it will require changes in the language itself. And I'm sure there is no reasons for it.
go to post Dmitry Maslennikov · Nov 8, 2022 Well, looks like the result of getGeneratedKeys() exactly the same as LAST_IDENTITY()
go to post Dmitry Maslennikov · Nov 8, 2022 Great news about RETURNING, yeah, that will help a lot, especially for external adapters. And thanks for the tip with getGeneratedKeys
go to post Dmitry Maslennikov · Nov 8, 2022 "scheme": "https", Are you sure, that you need https, not plain http? Seems like, it's the issue
go to post Dmitry Maslennikov · Nov 7, 2022 Well, then, the latest 2022.2, should be able to start on up to 20 cores.
go to post Dmitry Maslennikov · Nov 7, 2022 Save it as file ObjectScript.RightTriangle.cls, and do the command Do $system.OBJ.Load("ObjectScript.RightTriangle.cls", "ck") Where, c - compile k - keep generated code, INT routines
go to post Dmitry Maslennikov · Nov 5, 2022 So, home edition could be an issue. But not sure. And AMD itself should be be an issue at all, the issue mostly like in some software already installed. Depends on in what stage it hangs, at some point it should start the installing IRIS, and I would look at its log (<installdir>/mgr/messages.log). Probably it may got something there
go to post Dmitry Maslennikov · Nov 5, 2022 Right, but from that point of code, I have no idea what the primary key is, I may get the table name, and that's it. And I don't want to do any extra queries, to find it out. Even the to do query with LAST_IDENTITY() seems too much for performance reasons. It's a part of Python SQLAlchemy ORM Dialect in my development right now.
go to post Dmitry Maslennikov · Nov 4, 2022 Hmm, it's system-wide, and now I see, that it's the wrong way. I can't use this. Are there any possibilities to have such option just for a process?
go to post Dmitry Maslennikov · Nov 4, 2022 InterSystems DB-API Driver does not support it, yet, But yeah, this can solve it, and I like this way more. sqlalchemy.exc.InterfaceError: (iris.dbapi._DBAPI.InterfaceError) Error parsing statement 'SET OPTION PKEY_IS_IDKEY = TRUE':
go to post Dmitry Maslennikov · Nov 4, 2022 Found this way with IDENTITY and ALLOWIDENTITYINSERT=1 CREATE TABLE users ( id identity NOT NULL, name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ) WITH %CLASSPARAMETER ALLOWIDENTITYINSERT = 1; INSERT INTO users (id, name) VALUES (2, 'fred'); SELECT LAST_IDENTITY(); INSERT INTO users (name) VALUES ('ed'); SELECT LAST_IDENTITY(); Not sure if actually a good way to solve the issue
go to post Dmitry Maslennikov · Nov 3, 2022 No reason to reinvent the wheel, just use imagemagick, no matter the OS, it works anywhere and with any format.